11.4Srillig# $NetBSD: Makefile,v 1.4 2023/01/19 23:26:15 rillig Exp $ 21.2Sapb 31.2Sapb# The tests for make(1) are maintained in src/usr.bin/make/unit-tests 41.2Sapb# (UNIT_TESTS_DISTDIR). We copy them verbatim to ${FILESDIR}/unit-tests 51.2Sapb# (UNIT_TESTS_DIR) at install time. 61.2Sapb# 71.2Sapb# The t_make .sh script (installed as ${FILESDIR}/t_make) is the only 81.2Sapb# thing that knows about Atf. At run time, the t_make simply invokes 91.2Sapb# the Makefile in UNIT_TESTS_DIR for each test. 101.1Sjruoho 111.1SjruohoNOMAN= # defined 121.1Sjruoho 131.1Sjruoho.include <bsd.own.mk> 141.1Sjruoho 151.1SjruohoTESTSDIR= ${TESTSBASE}/usr.bin/make 161.1Sjruoho 171.1SjruohoTESTS_SH= t_make 181.1Sjruoho 191.1SjruohoFILESDIR= ${TESTSDIR} 201.2Sapb 211.2Sapb# Where we install the copies of the files for the tests 221.2SapbUNIT_TESTS_DIR= ${FILESDIR}/unit-tests 231.2Sapb 241.2Sapb# Where we obtain the original files for the tests 251.2SapbUNIT_TESTS_DISTDIR= ${NETBSDSRCDIR}/usr.bin/make/unit-tests 261.2Sapb 271.2Sapb# Which original files to copy 281.4SrilligDISTFILES!= (cd ${UNIT_TESTS_DISTDIR} && echo Makefile *.mk *.inc *.exp) 291.2Sapb 301.2Sapb# Instruct bsd.files.mk to make the copies 311.3Srillig.for f in ${DISTFILES:S,^,${UNIT_TESTS_DISTDIR}/,} 321.3SrilligFILES+= ${f} 331.3SrilligFILESNAME_${f}= ${f:T} 341.3SrilligFILESDIR_${f}= ${UNIT_TESTS_DIR} 351.2Sapb.endfor 361.1Sjruoho 371.1Sjruoho.include <bsd.test.mk> 38