svn commit: r260085 - stable/10/tools/build/mk
Julio Merino
jmmv at FreeBSD.org
Mon Dec 30 14:09:04 UTC 2013
Author: jmmv
Date: Mon Dec 30 14:09:04 2013
New Revision: 260085
URL: http://svnweb.freebsd.org/changeset/base/260085
Log:
Fix 'make check-old' warnings when WITHOUT_TESTS is set.
This is a MFC of r258025 and r257940, both of which resolve issues with
dynamically setting the list of obsolete files based on the contents
of /usr/tests.
Modified:
stable/10/tools/build/mk/OptionalObsoleteFiles.inc
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/tools/build/mk/OptionalObsoleteFiles.inc
==============================================================================
--- stable/10/tools/build/mk/OptionalObsoleteFiles.inc Mon Dec 30 13:05:19 2013 (r260084)
+++ stable/10/tools/build/mk/OptionalObsoleteFiles.inc Mon Dec 30 14:09:04 2013 (r260085)
@@ -4143,11 +4143,13 @@ OLD_FILES+=usr/share/man/man4/atf-test-c
OLD_FILES+=usr/share/mk/atf.test.mk
# Test suite.
-TESTS_DIRS!=find ${DESTDIR}/usr/tests -type d | sed -e 's,^${DESTDIR}/,,'
+. if(exists(${DESTDIR}/usr/tests/))
+TESTS_DIRS!=find ${DESTDIR}/usr/tests -type d | sed -e 's,^${DESTDIR}/,,'; echo
OLD_DIRS+=${TESTS_DIRS}
-TESTS_FILES!=find ${DESTDIR}/usr/tests \! -type d | sed -e 's,^${DESTDIR}/,,'
+TESTS_FILES!=find ${DESTDIR}/usr/tests \! -type d | sed -e 's,^${DESTDIR}/,,'; echo
OLD_FILES+=${TESTS_FILES}
-.endif
+. endif
+.endif # Test suite.
#.if ${MK_TOOLCHAIN} == no
# to be filled in
More information about the svn-src-stable-10
mailing list