1 # $NetBSD: Makefile,v 1.2 2014/08/22 16:45:32 apb Exp $
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.
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.
15 TESTSDIR
= ${TESTSBASE}/usr.bin
/make
21 # Where we install the copies of the files for the tests
22 UNIT_TESTS_DIR
= ${FILESDIR}/unit-tests
24 # Where we obtain the original files for the tests
25 UNIT_TESTS_DISTDIR
= ${NETBSDSRCDIR}/usr.bin
/make
/unit-tests
27 # Which original files to copy
28 DISTFILES
!= (cd
${UNIT_TESTS_DISTDIR} && echo Makefile
*.mk
*.exp
)
30 # Instruct bsd.files.mk to make the copies
31 .for f in
${DISTFILES}
32 _file
:= ${UNIT_TESTS_DISTDIR}/${f}
33 FILES
+= ${UNIT_TESTS_DISTDIR}/${f}
34 FILESNAME_
${_file} := ${_file
:T
}
35 FILESDIR_
${_file} := ${UNIT_TESTS_DIR}
38 .
include <bsd.
test.mk
>