diff options
author | jmmv <jmmv@FreeBSD.org> | 2013-12-30 14:09:04 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2013-12-30 14:09:04 +0000 |
commit | 8a773bc13424e791cea0f4c0136a48f9667e87c5 (patch) | |
tree | 11b4068e8f7fd540233aa39fb3822fe9a925abb8 /tools | |
parent | 1c55c369e7e81e61c03cc28d0f659c54cc14174b (diff) | |
download | FreeBSD-src-8a773bc13424e791cea0f4c0136a48f9667e87c5.zip FreeBSD-src-8a773bc13424e791cea0f4c0136a48f9667e87c5.tar.gz |
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build/mk/OptionalObsoleteFiles.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index 4a5aa3b..08986aa 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -4143,11 +4143,13 @@ OLD_FILES+=usr/share/man/man4/atf-test-case.4.gz 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 |