Handle the removal of the test suite when WITHOUT_TESTS=yes.

Add all files from /usr/tests to the obsoleted files list when the
build of the tests is disabled via the WITHOUT_TESTS knob.  Do this
automatically so that we do not have to suffer the pain of maintaining
such list by hand.

Reviewed by:	freebsd-testing
Approved by:	rpaulo (mentor)
This commit is contained in:
Julio Merino 2013-11-08 14:26:52 +00:00
parent e01d128a42
commit 14de84e74a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257851

View File

@ -4105,7 +4105,10 @@ OLD_FILES+=usr/share/man/man4/atf-test-case.4.gz
OLD_FILES+=usr/share/mk/atf.test.mk
# Test suite.
# TODO(jmmv): To be filled in.
TESTS_DIRS!=find ${DESTDIR}/usr/tests -type d | sed -e 's,^${DESTDIR}/,,'
OLD_DIRS+=${TESTS_DIRS}
TESTS_FILES!=find ${DESTDIR}/usr/tests \! -type d | sed -e 's,^${DESTDIR}/,,'
OLD_FILES+=${TESTS_FILES}
.endif
#.if ${MK_TOOLCHAIN} == no