NetBSD/tests/usr.bin/make/Makefile
apb 6b933a652f Test make(1) by running the maintained tests, not unmaintained
copies of them.

* Remove all old tests from src/tests/usr.bin/make/d_*.  These tests
  were unmaintained old copies of the actual tests which are maintained
  under src/usr.bin/make/unit-tests.  One exception is the test in
  d_unmatchedvarparen.mk, which was new, but has nw been added to
  src/usr.bin/make/unit-tests/varmisc.mk.
* In src/tests/usr.bin/make/Makefile, copy all
  the tests from src/usr.bin/make/unit-tests to
  ${DESTDIR}/usr/tests/usr.bin/make/unit-tests.
* In src/tests/usr.bin/make/t_make.sh, run the tests installed above,
  instead of the old tests.
* In etc/mtree/NetBSD.dist.tests, create the
  usr/tests/usr.bin/make/unit-tests diectory.
* Update the set lists for all the above.
2014-08-22 16:45:32 +00:00

39 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2014/08/22 16:45:32 apb Exp $
# The tests for make(1) are maintained in src/usr.bin/make/unit-tests
# (UNIT_TESTS_DISTDIR). We copy them verbatim to ${FILESDIR}/unit-tests
# (UNIT_TESTS_DIR) at install time.
#
# The t_make .sh script (installed as ${FILESDIR}/t_make) is the only
# thing that knows about Atf. At run time, the t_make simply invokes
# the Makefile in UNIT_TESTS_DIR for each test.
NOMAN= # defined
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/usr.bin/make
TESTS_SH= t_make
FILESDIR= ${TESTSDIR}
# Where we install the copies of the files for the tests
UNIT_TESTS_DIR= ${FILESDIR}/unit-tests
# Where we obtain the original files for the tests
UNIT_TESTS_DISTDIR= ${NETBSDSRCDIR}/usr.bin/make/unit-tests
# Which original files to copy
DISTFILES!= (cd ${UNIT_TESTS_DISTDIR} && echo Makefile *.mk *.exp)
# Instruct bsd.files.mk to make the copies
.for f in ${DISTFILES}
_file := ${UNIT_TESTS_DISTDIR}/${f}
FILES+= ${UNIT_TESTS_DISTDIR}/${f}
FILESNAME_${_file} := ${_file:T}
FILESDIR_${_file} := ${UNIT_TESTS_DIR}
.endfor
.include <bsd.test.mk>