1*d67dd695Srillig# $NetBSD: Makefile,v 1.4 2023/01/19 23:26:15 rillig Exp $ 26b933a65Sapb 36b933a65Sapb# The tests for make(1) are maintained in src/usr.bin/make/unit-tests 46b933a65Sapb# (UNIT_TESTS_DISTDIR). We copy them verbatim to ${FILESDIR}/unit-tests 56b933a65Sapb# (UNIT_TESTS_DIR) at install time. 66b933a65Sapb# 76b933a65Sapb# The t_make .sh script (installed as ${FILESDIR}/t_make) is the only 86b933a65Sapb# thing that knows about Atf. At run time, the t_make simply invokes 96b933a65Sapb# the Makefile in UNIT_TESTS_DIR for each test. 1028604916Sjruoho 1128604916SjruohoNOMAN= # defined 1228604916Sjruoho 1328604916Sjruoho.include <bsd.own.mk> 1428604916Sjruoho 1528604916SjruohoTESTSDIR= ${TESTSBASE}/usr.bin/make 1628604916Sjruoho 1728604916SjruohoTESTS_SH= t_make 1828604916Sjruoho 1928604916SjruohoFILESDIR= ${TESTSDIR} 206b933a65Sapb 216b933a65Sapb# Where we install the copies of the files for the tests 226b933a65SapbUNIT_TESTS_DIR= ${FILESDIR}/unit-tests 236b933a65Sapb 246b933a65Sapb# Where we obtain the original files for the tests 256b933a65SapbUNIT_TESTS_DISTDIR= ${NETBSDSRCDIR}/usr.bin/make/unit-tests 266b933a65Sapb 276b933a65Sapb# Which original files to copy 28*d67dd695SrilligDISTFILES!= (cd ${UNIT_TESTS_DISTDIR} && echo Makefile *.mk *.inc *.exp) 296b933a65Sapb 306b933a65Sapb# Instruct bsd.files.mk to make the copies 31eefa5d1cSrillig.for f in ${DISTFILES:S,^,${UNIT_TESTS_DISTDIR}/,} 32eefa5d1cSrilligFILES+= ${f} 33eefa5d1cSrilligFILESNAME_${f}= ${f:T} 34eefa5d1cSrilligFILESDIR_${f}= ${UNIT_TESTS_DIR} 356b933a65Sapb.endfor 3628604916Sjruoho 3728604916Sjruoho.include <bsd.test.mk> 38