Add placeholder Kyuafiles for various top-level hierarchies.

This change adds tests/ directories in the source tree to create various
subdirectories in /usr/tests/ and to install placeholder Kyuafiles for
them.

the relevant hierarchies are: cddl, etc, games, gnu and secure.

The reason for this is to simplify the addition of new test programs for
utilities or libraries under any of these directories.  Doing so on a
case by case basis is unnecessary and is quite an obscure process.
This commit is contained in:
Julio Merino
2014-04-21 21:39:25 +00:00
parent 236b00df63
commit 38f0b757fd
31 changed files with 256 additions and 6 deletions
+6
View File
@@ -1,5 +1,11 @@
# $FreeBSD$ # $FreeBSD$
.include <bsd.own.mk>
SUBDIR= lib sbin usr.bin usr.sbin SUBDIR= lib sbin usr.bin usr.sbin
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+6 -1
View File
@@ -11,7 +11,12 @@ SUBDIR= ${_drti} \
libuutil \ libuutil \
${_libzfs_core} \ ${_libzfs_core} \
${_libzfs} \ ${_libzfs} \
${_libzpool} ${_libzpool} \
${_tests}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
.if ${MK_ZFS} != "no" .if ${MK_ZFS} != "no"
_libzfs_core= libzfs_core _libzfs_core= libzfs_core
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/cddl/lib
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+5 -1
View File
@@ -2,7 +2,11 @@
.include <bsd.own.mk> .include <bsd.own.mk>
SUBDIR= ${_zfs} ${_zpool} SUBDIR= ${_tests} ${_zfs} ${_zpool}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
.if ${MK_ZFS} != "no" .if ${MK_ZFS} != "no"
_zfs= zfs _zfs= zfs
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/cddl/sbin
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/cddl
.PATH: ${.CURDIR:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+5
View File
@@ -7,11 +7,16 @@ SUBDIR= \
ctfdump \ ctfdump \
ctfmerge \ ctfmerge \
sgsmsg \ sgsmsg \
${_tests} \
${_zinject} \ ${_zinject} \
${_zlook} \ ${_zlook} \
${_zstreamdump} \ ${_zstreamdump} \
${_ztest} ${_ztest}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
.if ${MK_ZFS} != "no" .if ${MK_ZFS} != "no"
_zinject= zinject _zinject= zinject
#_zlook= zlook #_zlook= zlook
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/cddl/usr.bin
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+5
View File
@@ -5,9 +5,14 @@
SUBDIR= ${_dtrace} \ SUBDIR= ${_dtrace} \
${_dtruss} \ ${_dtruss} \
${_lockstat} \ ${_lockstat} \
${_tests} \
${_zdb} \ ${_zdb} \
${_zhack} ${_zhack}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
.if ${MK_ZFS} != "no" .if ${MK_ZFS} != "no"
.if ${MK_LIBTHR} != "no" .if ${MK_LIBTHR} != "no"
_zdb= zdb _zdb= zdb
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/cddl/usr.sbin
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+4
View File
@@ -7,6 +7,10 @@
SUBDIR= sendmail SUBDIR= sendmail
.endif .endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
BIN1= crontab \ BIN1= crontab \
devd.conf \ devd.conf \
devfs.conf \ devfs.conf \
+30
View File
@@ -50,6 +50,26 @@
test test
.. ..
.. ..
cddl
lib
..
sbin
..
usr.bin
..
usr.sbin
..
..
etc
..
games
..
gnu
lib
..
usr.bin
..
..
lib lib
atf atf
libatf-c libatf-c
@@ -82,6 +102,16 @@
mdconfig mdconfig
.. ..
.. ..
secure
lib
..
libexec
..
usr.bin
..
usr.sbin
..
..
share share
examples examples
tests tests
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/etc
.PATH: ${.CURDIR:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+8 -2
View File
@@ -1,6 +1,7 @@
# @(#)Makefile 8.2 (Berkeley) 3/31/94
# $FreeBSD$ # $FreeBSD$
.include <bsd.own.mk>
SUBDIR= \ SUBDIR= \
bcd \ bcd \
caesar \ caesar \
@@ -12,6 +13,11 @@ SUBDIR= \
pom \ pom \
ppt \ ppt \
primes \ primes \
random random \
${_tests}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/games
.PATH: ${.CURDIR:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+7 -1
View File
@@ -1,6 +1,12 @@
# @(#)Makefile 5.33.1.1 (Berkeley) 5/6/91 # @(#)Makefile 5.33.1.1 (Berkeley) 5/6/91
# $FreeBSD$ # $FreeBSD$
SUBDIR= lib usr.bin .include <bsd.own.mk>
SUBDIR= lib ${_tests} usr.bin
.if ${MK_TESTS} != "no"
_tests= tests
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+4
View File
@@ -8,6 +8,10 @@ SUBDIR= csu libgcc libgcov libdialog libgomp libregex libreadline
SUBDIR+= libssp SUBDIR+= libssp
.endif .endif
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
# libsupc++ uses libstdc++ headers, although 'make includes' should # libsupc++ uses libstdc++ headers, although 'make includes' should
# have taken care of that already. # have taken care of that already.
.if ${MK_GNUCXX} != "no" && ${MK_CXX} != "no" .if ${MK_GNUCXX} != "no" && ${MK_CXX} != "no"
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/gnu/lib
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/gnu
.PATH: ${.CURDIR:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+5
View File
@@ -15,6 +15,7 @@ SUBDIR= ${_binutils} \
${_rcs} \ ${_rcs} \
sdiff \ sdiff \
send-pr \ send-pr \
${_tests} \
${_texinfo} ${_texinfo}
.if ${MK_CXX} != "no" .if ${MK_CXX} != "no"
@@ -36,6 +37,10 @@ _texinfo= texinfo
_rcs= rcs _rcs= rcs
.endif .endif
.if ${MK_TESTS} != "no"
_tests= tests
.endif
.if ${MK_BINUTILS} != "no" .if ${MK_BINUTILS} != "no"
_binutils= binutils _binutils= binutils
.endif .endif
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/gnu/usr.bin
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+5 -1
View File
@@ -2,7 +2,11 @@
.include <bsd.own.mk> .include <bsd.own.mk>
SUBDIR= lib libexec usr.bin usr.sbin SUBDIR= lib libexec ${_tests} usr.bin usr.sbin
.if ${MK_TESTS} != "no"
_tests= tests
.endif
# These are the programs which depend on crypto, but not Kerberos. # These are the programs which depend on crypto, but not Kerberos.
SPROGS= lib/libfetch lib/libpam lib/libradius lib/libtelnet \ SPROGS= lib/libfetch lib/libpam lib/libradius lib/libtelnet \
+4
View File
@@ -10,4 +10,8 @@ SUBDIR+=libssh
.endif .endif
.endif .endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/secure/lib
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+4
View File
@@ -7,4 +7,8 @@ SUBDIR=
SUBDIR+=sftp-server ssh-keysign ssh-pkcs11-helper SUBDIR+=sftp-server ssh-keysign ssh-pkcs11-helper
.endif .endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/secure/libexec
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/secure
.PATH: ${.CURDIR:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+4
View File
@@ -10,4 +10,8 @@ SUBDIR+=scp sftp ssh ssh-add ssh-agent ssh-keygen ssh-keyscan
.endif .endif
.endif .endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/secure/usr.bin
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>
+4
View File
@@ -7,4 +7,8 @@ SUBDIR=
SUBDIR+=sshd SUBDIR+=sshd
.endif .endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+10
View File
@@ -0,0 +1,10 @@
# $FreeBSD$
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/secure/usr.sbin
.PATH: ${.CURDIR:H:H:H}/tests
KYUAFILE= yes
.include <bsd.test.mk>