Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2013 14:26:53 +0000 (UTC)
From:      Julio Merino <jmmv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257851 - head/tools/build/mk
Message-ID:  <201311081426.rA8EQr8w014411@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmmv
Date: Fri Nov  8 14:26:52 2013
New Revision: 257851
URL: http://svnweb.freebsd.org/changeset/base/257851

Log:
  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)

Modified:
  head/tools/build/mk/OptionalObsoleteFiles.inc

Modified: head/tools/build/mk/OptionalObsoleteFiles.inc
==============================================================================
--- head/tools/build/mk/OptionalObsoleteFiles.inc	Fri Nov  8 14:24:47 2013	(r257850)
+++ head/tools/build/mk/OptionalObsoleteFiles.inc	Fri Nov  8 14:26:52 2013	(r257851)
@@ -4105,7 +4105,10 @@ OLD_FILES+=usr/share/man/man4/atf-test-c
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311081426.rA8EQr8w014411>