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+= uio 9 10# non-sys/ headers 11FORTIFY_TCATS+= poll 12FORTIFY_TCATS+= stdlib 13FORTIFY_TCATS+= stdio 14FORTIFY_TCATS+= string 15FORTIFY_TCATS+= strings 16FORTIFY_TCATS+= unistd 17FORTIFY_TCATS+= wchar 18 19# Manually run after updating the test generator. 20generate-tests: .PHONY 21.for tcat in ${FORTIFY_TCATS} 22ATF_TESTS_C+= fortify_${tcat}_test 23 24generate-tests: generate-tests-${tcat} 25generate-tests-${tcat}: .PHONY 26 ${.CURDIR}/generate-fortify-tests.lua ${tcat} > ${.CURDIR}/fortify_${tcat}_test.c 27.endfor 28 29.include <bsd.test.mk> 30