Home | History | Annotate | Line # | Download | only in make
      1 # $NetBSD: Makefile,v 1.4 2023/01/19 23:26:15 rillig Exp $
      2 
      3 # The tests for make(1) are maintained in src/usr.bin/make/unit-tests
      4 # (UNIT_TESTS_DISTDIR).  We copy them verbatim to ${FILESDIR}/unit-tests
      5 # (UNIT_TESTS_DIR) at install time.
      6 #
      7 # The t_make .sh script (installed as ${FILESDIR}/t_make) is the only
      8 # thing that knows about Atf.  At run time, the t_make simply invokes
      9 # the Makefile in UNIT_TESTS_DIR for each test.
     10 
     11 NOMAN=			# defined
     12 
     13 .include <bsd.own.mk>
     14 
     15 TESTSDIR=		${TESTSBASE}/usr.bin/make
     16 
     17 TESTS_SH=		t_make
     18 
     19 FILESDIR=		${TESTSDIR}
     20 
     21 # Where we install the copies of the files for the tests
     22 UNIT_TESTS_DIR=		${FILESDIR}/unit-tests
     23 
     24 # Where we obtain the original files for the tests
     25 UNIT_TESTS_DISTDIR=	${NETBSDSRCDIR}/usr.bin/make/unit-tests
     26 
     27 # Which original files to copy
     28 DISTFILES!=	(cd ${UNIT_TESTS_DISTDIR} && echo Makefile *.mk *.inc *.exp)
     29 
     30 # Instruct bsd.files.mk to make the copies
     31 .for f in ${DISTFILES:S,^,${UNIT_TESTS_DISTDIR}/,}
     32 FILES+=		${f}
     33 FILESNAME_${f}=	${f:T}
     34 FILESDIR_${f}=	${UNIT_TESTS_DIR}
     35 .endfor
     36 
     37 .include <bsd.test.mk>
     38