1 2.include <bsd.init.mk> 3 4ATF= ${SRCTOP}/contrib/atf 5.PATH: ${ATF}/atf-sh 6 7ATF_TESTS_SH+= atf_check_test 8ATF_TESTS_SH+= config_test 9ATF_TESTS_SH+= integration_test 10ATF_TESTS_SH+= normalize_test 11ATF_TESTS_SH+= tc_test 12ATF_TESTS_SH+= tp_test 13 14integration_test: Makefile 15ATF_TESTS_SH_SED_integration_test= \ 16 -e 's,__ATF_SH__,/usr/libexec/atf-sh,g' 17 18SCRIPTS+= misc_helpers 19SCRIPTSDIR_misc_helpers=${TESTSDIR} 20CLEANFILES+= misc_helpers misc_helpers.tmp 21misc_helpers: misc_helpers.sh 22 echo '#! /usr/libexec/atf-sh' >${.TARGET}.tmp 23 cat ${.ALLSRC} >>${.TARGET}.tmp 24 chmod +x ${.TARGET}.tmp 25 mv ${.TARGET}.tmp ${.TARGET} 26 27.include <bsd.test.mk> 28