]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix building/installing tests when TESTSBASE != /usr/tests
authorngie <ngie@FreeBSD.org>
Thu, 18 Dec 2014 18:16:00 +0000 (18:16 +0000)
committerngie <ngie@FreeBSD.org>
Thu, 18 Dec 2014 18:16:00 +0000 (18:16 +0000)
commit9e9e76964ff9344d5b60d8b8ff165b167c283d4f
tree0d9fb02f5bc125bd07f95927553f82cebae21a89
parentcfa4b3bfed62875cbebbdaa6c7f9a19b8e2c378b
Fix building/installing tests when TESTSBASE != /usr/tests

The work in r258233 hardcoded the assumption that tests was the last component
of the tests tree by pushing tests as an explicit prefix for the paths in
BSD.tests.dist and /usr was the prefix for all tests, per BSD.usr.dist and all
of the mtree calls used in Makefile.inc1. This assumption breaks if/when one
provides a custom TESTSBASE "prefix", e.g. TESTSBASE=/mytests .

One thing that r258233 did properly though was remove "/usr/tests" creation
from BSD.usr.dist -- that should have not been there in the first place. That
was an "oops" on my part for the work that was originally committed in r241823

MFC after: 2 weeks
Phabric: D1301
Reviewed by: imp
Sponsored by: EMC / Isilon Storage Division
Makefile.inc1
etc/Makefile
etc/mtree/BSD.include.dist
etc/mtree/BSD.tests.dist
etc/mtree/BSD.usr.dist
tools/build/mk/OptionalObsoleteFiles.inc