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
11NOMAN=                        # defined
12
13.include <bsd.own.mk>
14
15TESTSDIR=           ${TESTSBASE}/usr.bin/make
16
17TESTS_SH=           t_make
18
19FILESDIR=           ${TESTSDIR}
20
21# Where we install the copies of the files for the tests
22UNIT_TESTS_DIR=               ${FILESDIR}/unit-tests
23
24# Where we obtain the original files for the tests
25UNIT_TESTS_DISTDIR= ${NETBSDSRCDIR}/usr.bin/make/unit-tests
26
27# Which original files to copy
28DISTFILES!=         (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}/,}
32FILES+=             ${f}
33FILESNAME_${f}=     ${f:T}
34FILESDIR_${f}=      ${UNIT_TESTS_DIR}
35.endfor
36
37.include <bsd.test.mk>
38