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