summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-12-18 18:16:00 +0000
committerngie <ngie@FreeBSD.org>2014-12-18 18:16:00 +0000
commit9e9e76964ff9344d5b60d8b8ff165b167c283d4f (patch)
tree0d9fb02f5bc125bd07f95927553f82cebae21a89 /etc
parentcfa4b3bfed62875cbebbdaa6c7f9a19b8e2c378b (diff)
downloadFreeBSD-src-9e9e76964ff9344d5b60d8b8ff165b167c283d4f.zip
FreeBSD-src-9e9e76964ff9344d5b60d8b8ff165b167c283d4f.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/Makefile4
-rw-r--r--etc/mtree/BSD.include.dist4
-rw-r--r--etc/mtree/BSD.tests.dist598
-rw-r--r--etc/mtree/BSD.usr.dist6
4 files changed, 303 insertions, 309 deletions
diff --git a/etc/Makefile b/etc/Makefile
index ff70cc1..76db02a 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -333,7 +333,7 @@ MTREES+= mtree/BSD.debug.dist /usr/lib
MTREES+= mtree/BSD.groff.dist /usr
.endif
.if ${MK_TESTS} != "no"
-MTREES+= mtree/BSD.tests.dist /usr
+MTREES+= mtree/BSD.tests.dist ${TESTSBASE}
.endif
.if ${MK_SENDMAIL} != "no"
MTREES+= mtree/BSD.sendmail.dist /
@@ -349,6 +349,7 @@ distrib-dirs: ${MTREES:N/*}
shift; \
d=${DESTDIR}$$1; \
shift; \
+ test -d $$d || mkdir -p $$d; \
${ECHO} ${MTREE_CMD} -deU ${MTREE_FOLLOWS_SYMLINKS} \
-f $$m -p $$d; \
${MTREE_CMD} -deU ${MTREE_FOLLOWS_SYMLINKS} -f $$m -p $$d; \
@@ -362,6 +363,7 @@ distrib-dirs: ${MTREES:N/*}
test "$$d" == "/" && d=""; \
d=${DISTBASE}$$d; \
shift; \
+ test -d $$d || mkdir -p $$d; \
${ECHO} "${MTREE_CMD:N-W} -C -f $$m -K uname,gname | " \
"sed s#^\.#.$$d# | ${METALOG.add}" ; \
${MTREE_CMD:N-W} -C -f $$m -K uname,gname | sed s#^\.#.$$d# | \
diff --git a/etc/mtree/BSD.include.dist b/etc/mtree/BSD.include.dist
index fd54387..c01429e 100644
--- a/etc/mtree/BSD.include.dist
+++ b/etc/mtree/BSD.include.dist
@@ -9,6 +9,10 @@
..
arpa
..
+ atf-c
+ ..
+ atf-c++
+ ..
bsm
..
bsnmp
diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist
index 5285fe3..2708568 100644
--- a/etc/mtree/BSD.tests.dist
+++ b/etc/mtree/BSD.tests.dist
@@ -5,410 +5,392 @@
/set type=dir uname=root gname=wheel mode=0755
.
- include
- atf-c
+ bin
+ chown
..
- atf-c++
+ date
..
- ..
- share
- atf
+ mv
..
- doc
- atf
- ..
- pjdfstest
- ..
+ pax
..
- ..
- tests
- bin
- chown
+ pkill
+ ..
+ sh
+ builtins
..
- date
+ errors
..
- mv
+ execution
..
- pax
+ expansion
..
- pkill
+ parameters
..
- sh
- builtins
- ..
- errors
- ..
- execution
- ..
- expansion
- ..
- parameters
- ..
- parser
- ..
- set-e
- ..
+ parser
..
- sleep
- ..
- test
+ set-e
..
..
- cddl
- lib
- ..
- sbin
- ..
- usr.bin
- ..
- usr.sbin
- ..
+ sleep
+ ..
+ test
+ ..
+ ..
+ cddl
+ lib
..
- etc
+ sbin
..
- games
+ usr.bin
..
- gnu
- lib
- ..
- usr.bin
- diff
- ..
- ..
+ usr.sbin
..
+ ..
+ etc
+ ..
+ games
+ ..
+ gnu
lib
- atf
- libatf-c
- detail
- ..
- ..
- libatf-c++
- detail
- ..
- ..
- test-programs
- ..
+ ..
+ usr.bin
+ diff
..
- libc
- c063
- ..
- db
- ..
- gen
- execve
- ..
- posix_spawn
- ..
+ ..
+ ..
+ lib
+ atf
+ libatf-c
+ detail
..
- hash
- data
- ..
+ ..
+ libatf-c++
+ detail
..
- inet
+ ..
+ test-programs
+ ..
+ ..
+ libc
+ c063
+ ..
+ db
+ ..
+ gen
+ execve
..
- locale
+ posix_spawn
..
- net
- getaddrinfo
- data
- ..
- ..
+ ..
+ hash
+ data
..
- regex
+ ..
+ inet
+ ..
+ locale
+ ..
+ net
+ getaddrinfo
data
..
..
- ssp
- ..
- stdio
- ..
- stdlib
- ..
- string
- ..
- sys
- ..
- time
- ..
- tls
- dso
- ..
- ..
- termios
- ..
- ttyio
+ ..
+ regex
+ data
..
..
- libcrypt
+ ssp
..
- libmp
+ stdio
..
- libnv
+ stdlib
..
- libpam
+ string
..
- libproc
+ sys
..
- librt
+ time
..
- libthr
- dlopen
+ tls
+ dso
..
..
- libutil
+ termios
..
- msun
+ ttyio
..
..
+ libcrypt
+ ..
+ libmp
+ ..
+ libnv
+ ..
+ libpam
+ ..
+ libproc
+ ..
+ librt
+ ..
+ libthr
+ dlopen
+ ..
+ ..
+ libutil
+ ..
+ msun
+ ..
+ ..
+ libexec
+ atf
+ atf-check
+ ..
+ atf-sh
+ ..
+ ..
+ rtld-elf
+ ..
+ ..
+ sbin
+ dhclient
+ ..
+ devd
+ ..
+ growfs
+ ..
+ mdconfig
+ ..
+ ..
+ secure
+ lib
+ ..
libexec
- atf
- atf-check
+ ..
+ usr.bin
+ ..
+ usr.sbin
+ ..
+ ..
+ share
+ examples
+ tests
+ atf
..
- atf-sh
+ plain
..
..
- rtld-elf
- ..
..
- sbin
- dhclient
+ ..
+ sys
+ kern
+ ..
+ netinet
+ ..
+ opencrypto
+ ..
+ pjdfstest
+ chflags
+ ..
+ chmod
..
- devd
+ chown
..
- growfs
+ ftruncate
..
- mdconfig
+ granular
..
- ..
- secure
- lib
+ link
..
- libexec
+ mkdir
..
- usr.bin
+ mkfifo
..
- usr.sbin
+ mknod
..
- ..
- share
- examples
- tests
- atf
- ..
- plain
- ..
- ..
+ open
..
- ..
- sys
- kern
+ rename
..
- netinet
+ rmdir
..
- opencrypto
+ symlink
..
- pjdfstest
- chflags
+ truncate
+ ..
+ unlink
+ ..
+ ..
+ ..
+ usr.bin
+ apply
+ ..
+ basename
+ ..
+ bmake
+ archives
+ fmt_44bsd
..
- chmod
+ fmt_44bsd_mod
..
- chown
+ fmt_oldbsd
..
- ftruncate
+ ..
+ basic
+ t0
..
- granular
+ t1
..
- link
+ t2
..
- mkdir
+ t3
..
- mkfifo
+ ..
+ execution
+ ellipsis
..
- mknod
+ empty
..
- open
+ joberr
..
- rename
+ plus
..
- rmdir
+ ..
+ shell
+ builtin
..
- symlink
+ meta
..
- truncate
+ path
..
- unlink
+ path_select
..
- ..
- ..
- usr.bin
- apply
- ..
- basename
- ..
- bmake
- archives
- fmt_44bsd
- ..
- fmt_44bsd_mod
- ..
- fmt_oldbsd
- ..
+ replace
+ ..
+ select
..
+ ..
+ suffixes
basic
- t0
- ..
- t1
- ..
- t2
- ..
- t3
- ..
..
- execution
- ellipsis
- ..
- empty
- ..
- joberr
- ..
- plus
- ..
+ src_wild1
..
- shell
- builtin
- ..
- meta
- ..
- path
- ..
- path_select
- ..
- replace
- ..
- select
- ..
+ src_wild2
..
- suffixes
- basic
- ..
- src_wild1
- ..
- src_wild2
- ..
+ ..
+ syntax
+ directive-t0
..
- syntax
- directive-t0
- ..
- enl
- ..
- funny-targets
- ..
- semi
- ..
+ enl
..
- sysmk
- t0
- 2
- 1
- ..
- ..
- mk
- ..
- ..
- t1
- 2
- 1
- ..
- ..
- mk
+ funny-targets
+ ..
+ semi
+ ..
+ ..
+ sysmk
+ t0
+ 2
+ 1
..
..
- t2
- 2
- 1
- ..
- ..
- mk
- ..
+ mk
..
..
- variables
- modifier_M
+ t1
+ 2
+ 1
+ ..
..
- modifier_t
+ mk
..
- opt_V
+ ..
+ t2
+ 2
+ 1
+ ..
..
- t0
+ mk
..
..
..
- calendar
- ..
- cmp
- ..
- comm
- ..
- cut
- ..
- dirname
- ..
- file2c
- ..
- grep
- ..
- gzip
- ..
- join
- ..
- jot
- ..
- lastcomm
- ..
- m4
- ..
- mkimg
- ..
- ncal
- ..
- printf
- ..
- sed
- regress.multitest.out
+ variables
+ modifier_M
..
- ..
- timeout
- ..
- tr
- ..
- truncate
- ..
- units
- ..
- uudecode
- ..
- uuencode
- ..
- xargs
- ..
- yacc
- yacc
+ modifier_t
+ ..
+ opt_V
+ ..
+ t0
..
..
..
- usr.sbin
- etcupdate
- ..
- newsyslog
- ..
- nmtree
- ..
- pw
+ calendar
+ ..
+ cmp
+ ..
+ comm
+ ..
+ cut
+ ..
+ dirname
+ ..
+ file2c
+ ..
+ grep
+ ..
+ gzip
+ ..
+ join
+ ..
+ jot
+ ..
+ lastcomm
+ ..
+ m4
+ ..
+ mkimg
+ ..
+ ncal
+ ..
+ printf
+ ..
+ sed
+ regress.multitest.out
..
- sa
+ ..
+ timeout
+ ..
+ tr
+ ..
+ truncate
+ ..
+ units
+ ..
+ uudecode
+ ..
+ uuencode
+ ..
+ xargs
+ ..
+ yacc
+ yacc
..
..
..
+ usr.sbin
+ etcupdate
+ ..
+ newsyslog
+ ..
+ nmtree
+ ..
+ pw
+ ..
+ sa
+ ..
+ ..
..
# vim: set expandtab ts=4 sw=4:
diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist
index 977cf75..c24d5c4 100644
--- a/etc/mtree/BSD.usr.dist
+++ b/etc/mtree/BSD.usr.dist
@@ -126,6 +126,8 @@
sbin
..
share
+ atf
+ ..
bsdconfig
media
..
@@ -169,6 +171,8 @@
doc
IPv6
..
+ atf
+ ..
atm
..
legal
@@ -189,6 +193,8 @@
..
papers
..
+ pjdfstest
+ ..
psd
01.cacm
..
OpenPOWER on IntegriCloud