1.include <bsd.own.mk> 2 3TESTSDIR:= ${TESTSBASE}/${RELDIR:C/libc\/tests/libc/} 4 5# sys/ headers 6FORTIFY_TCATS+= random 7FORTIFY_TCATS+= select 8FORTIFY_TCATS+= socket 9FORTIFY_TCATS+= uio 10 11# non-sys/ headers 12FORTIFY_TCATS+= poll 13FORTIFY_TCATS+= stdlib 14FORTIFY_TCATS+= stdio 15FORTIFY_TCATS+= string 16FORTIFY_TCATS+= strings 17FORTIFY_TCATS+= unistd 18FORTIFY_TCATS+= wchar 19 20# Manually run after updating the test generator. 21generate-tests: .PHONY 22.for tcat in ${FORTIFY_TCATS} 23ATF_TESTS_C+= fortify_${tcat}_test 24 25generate-tests: generate-tests-${tcat} 26generate-tests-${tcat}: .PHONY 27 ${.CURDIR}/generate-fortify-tests.lua ${tcat} > ${.CURDIR}/fortify_${tcat}_test.c 28.endfor 29 30.include <bsd.test.mk> 31