From owner-svn-src-all@FreeBSD.ORG Mon Apr 21 21:39:32 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 34E22CB6; Mon, 21 Apr 2014 21:39:32 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1EDBB1A0C; Mon, 21 Apr 2014 21:39:32 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3LLdWDR045084; Mon, 21 Apr 2014 21:39:32 GMT (envelope-from jmmv@svn.freebsd.org) Received: (from jmmv@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3LLdPgw045046; Mon, 21 Apr 2014 21:39:25 GMT (envelope-from jmmv@svn.freebsd.org) Message-Id: <201404212139.s3LLdPgw045046@svn.freebsd.org> From: Julio Merino Date: Mon, 21 Apr 2014 21:39:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264741 - in head: cddl cddl/lib cddl/lib/tests cddl/sbin cddl/sbin/tests cddl/tests cddl/usr.bin cddl/usr.bin/tests cddl/usr.sbin cddl/usr.sbin/tests etc etc/mtree etc/tests games game... X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2014 21:39:32 -0000 Author: jmmv Date: Mon Apr 21 21:39:25 2014 New Revision: 264741 URL: http://svnweb.freebsd.org/changeset/base/264741 Log: 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. Added: head/cddl/lib/tests/ head/cddl/lib/tests/Makefile (contents, props changed) head/cddl/sbin/tests/ head/cddl/sbin/tests/Makefile (contents, props changed) head/cddl/tests/ head/cddl/tests/Makefile (contents, props changed) head/cddl/usr.bin/tests/ head/cddl/usr.bin/tests/Makefile (contents, props changed) head/cddl/usr.sbin/tests/ head/cddl/usr.sbin/tests/Makefile (contents, props changed) head/etc/tests/ head/etc/tests/Makefile (contents, props changed) head/games/tests/ head/games/tests/Makefile (contents, props changed) head/gnu/lib/tests/ head/gnu/lib/tests/Makefile (contents, props changed) head/gnu/tests/ head/gnu/tests/Makefile (contents, props changed) head/gnu/usr.bin/tests/ head/gnu/usr.bin/tests/Makefile (contents, props changed) head/secure/lib/tests/ head/secure/lib/tests/Makefile (contents, props changed) head/secure/libexec/tests/ head/secure/libexec/tests/Makefile (contents, props changed) head/secure/tests/ head/secure/tests/Makefile (contents, props changed) head/secure/usr.bin/tests/ head/secure/usr.bin/tests/Makefile (contents, props changed) head/secure/usr.sbin/tests/ head/secure/usr.sbin/tests/Makefile (contents, props changed) Modified: head/cddl/Makefile head/cddl/lib/Makefile head/cddl/sbin/Makefile head/cddl/usr.bin/Makefile head/cddl/usr.sbin/Makefile head/etc/Makefile head/etc/mtree/BSD.tests.dist head/games/Makefile head/gnu/Makefile head/gnu/lib/Makefile head/gnu/usr.bin/Makefile head/secure/Makefile head/secure/lib/Makefile head/secure/libexec/Makefile head/secure/usr.bin/Makefile head/secure/usr.sbin/Makefile Modified: head/cddl/Makefile ============================================================================== --- head/cddl/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/cddl/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -1,5 +1,11 @@ # $FreeBSD$ +.include + SUBDIR= lib sbin usr.bin usr.sbin +.if ${MK_TESTS} != "no" +SUBDIR+=tests +.endif + .include Modified: head/cddl/lib/Makefile ============================================================================== --- head/cddl/lib/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/cddl/lib/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -11,7 +11,12 @@ SUBDIR= ${_drti} \ libuutil \ ${_libzfs_core} \ ${_libzfs} \ - ${_libzpool} + ${_libzpool} \ + ${_tests} + +.if ${MK_TESTS} != "no" +_tests= tests +.endif .if ${MK_ZFS} != "no" _libzfs_core= libzfs_core Added: head/cddl/lib/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cddl/lib/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/cddl/lib + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include Modified: head/cddl/sbin/Makefile ============================================================================== --- head/cddl/sbin/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/cddl/sbin/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -2,7 +2,11 @@ .include -SUBDIR= ${_zfs} ${_zpool} +SUBDIR= ${_tests} ${_zfs} ${_zpool} + +.if ${MK_TESTS} != "no" +_tests= tests +.endif .if ${MK_ZFS} != "no" _zfs= zfs Added: head/cddl/sbin/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cddl/sbin/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/cddl/sbin + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include Added: head/cddl/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cddl/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/cddl + +.PATH: ${.CURDIR:H:H}/tests +KYUAFILE= yes + +.include Modified: head/cddl/usr.bin/Makefile ============================================================================== --- head/cddl/usr.bin/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/cddl/usr.bin/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -7,11 +7,16 @@ SUBDIR= \ ctfdump \ ctfmerge \ sgsmsg \ + ${_tests} \ ${_zinject} \ ${_zlook} \ ${_zstreamdump} \ ${_ztest} +.if ${MK_TESTS} != "no" +_tests= tests +.endif + .if ${MK_ZFS} != "no" _zinject= zinject #_zlook= zlook Added: head/cddl/usr.bin/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cddl/usr.bin/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/cddl/usr.bin + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include Modified: head/cddl/usr.sbin/Makefile ============================================================================== --- head/cddl/usr.sbin/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/cddl/usr.sbin/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -5,9 +5,14 @@ SUBDIR= ${_dtrace} \ ${_dtruss} \ ${_lockstat} \ + ${_tests} \ ${_zdb} \ ${_zhack} +.if ${MK_TESTS} != "no" +_tests= tests +.endif + .if ${MK_ZFS} != "no" .if ${MK_LIBTHR} != "no" _zdb= zdb Added: head/cddl/usr.sbin/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cddl/usr.sbin/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/cddl/usr.sbin + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include Modified: head/etc/Makefile ============================================================================== --- head/etc/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/etc/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -7,6 +7,10 @@ SUBDIR= sendmail .endif +.if ${MK_TESTS} != "no" +SUBDIR+=tests +.endif + BIN1= crontab \ devd.conf \ devfs.conf \ Modified: head/etc/mtree/BSD.tests.dist ============================================================================== --- head/etc/mtree/BSD.tests.dist Mon Apr 21 19:33:27 2014 (r264740) +++ head/etc/mtree/BSD.tests.dist Mon Apr 21 21:39:25 2014 (r264741) @@ -50,6 +50,26 @@ test .. .. + cddl + lib + .. + sbin + .. + usr.bin + .. + usr.sbin + .. + .. + etc + .. + games + .. + gnu + lib + .. + usr.bin + .. + .. lib atf libatf-c @@ -82,6 +102,16 @@ mdconfig .. .. + secure + lib + .. + libexec + .. + usr.bin + .. + usr.sbin + .. + .. share examples tests Added: head/etc/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/etc/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/etc + +.PATH: ${.CURDIR:H:H}/tests +KYUAFILE= yes + +.include Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/games/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -1,6 +1,7 @@ -# @(#)Makefile 8.2 (Berkeley) 3/31/94 # $FreeBSD$ +.include + SUBDIR= \ bcd \ caesar \ @@ -12,6 +13,11 @@ SUBDIR= \ pom \ ppt \ primes \ - random + random \ + ${_tests} + +.if ${MK_TESTS} != "no" +_tests= tests +.endif .include Added: head/games/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/games + +.PATH: ${.CURDIR:H:H}/tests +KYUAFILE= yes + +.include Modified: head/gnu/Makefile ============================================================================== --- head/gnu/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/gnu/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -1,6 +1,12 @@ # @(#)Makefile 5.33.1.1 (Berkeley) 5/6/91 # $FreeBSD$ -SUBDIR= lib usr.bin +.include + +SUBDIR= lib ${_tests} usr.bin + +.if ${MK_TESTS} != "no" +_tests= tests +.endif .include Modified: head/gnu/lib/Makefile ============================================================================== --- head/gnu/lib/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/gnu/lib/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -8,6 +8,10 @@ SUBDIR= csu libgcc libgcov libdialog lib SUBDIR+= libssp .endif +.if ${MK_TESTS} != "no" +SUBDIR+= tests +.endif + # libsupc++ uses libstdc++ headers, although 'make includes' should # have taken care of that already. .if ${MK_GNUCXX} != "no" && ${MK_CXX} != "no" Added: head/gnu/lib/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/lib/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/gnu/lib + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include Added: head/gnu/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/gnu + +.PATH: ${.CURDIR:H:H}/tests +KYUAFILE= yes + +.include Modified: head/gnu/usr.bin/Makefile ============================================================================== --- head/gnu/usr.bin/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/gnu/usr.bin/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -15,6 +15,7 @@ SUBDIR= ${_binutils} \ ${_rcs} \ sdiff \ send-pr \ + ${_tests} \ ${_texinfo} .if ${MK_CXX} != "no" @@ -36,6 +37,10 @@ _texinfo= texinfo _rcs= rcs .endif +.if ${MK_TESTS} != "no" +_tests= tests +.endif + .if ${MK_BINUTILS} != "no" _binutils= binutils .endif Added: head/gnu/usr.bin/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/gnu/usr.bin/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/gnu/usr.bin + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include Modified: head/secure/Makefile ============================================================================== --- head/secure/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/secure/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -2,7 +2,11 @@ .include -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. SPROGS= lib/libfetch lib/libpam lib/libradius lib/libtelnet \ Modified: head/secure/lib/Makefile ============================================================================== --- head/secure/lib/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/secure/lib/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -10,4 +10,8 @@ SUBDIR+=libssh .endif .endif +.if ${MK_TESTS} != "no" +SUBDIR+=tests +.endif + .include Added: head/secure/lib/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/secure/lib/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/secure/lib + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include Modified: head/secure/libexec/Makefile ============================================================================== --- head/secure/libexec/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/secure/libexec/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -7,4 +7,8 @@ SUBDIR= SUBDIR+=sftp-server ssh-keysign ssh-pkcs11-helper .endif +.if ${MK_TESTS} != "no" +SUBDIR+=tests +.endif + .include Added: head/secure/libexec/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/secure/libexec/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/secure/libexec + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include Added: head/secure/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/secure/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/secure + +.PATH: ${.CURDIR:H:H}/tests +KYUAFILE= yes + +.include Modified: head/secure/usr.bin/Makefile ============================================================================== --- head/secure/usr.bin/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/secure/usr.bin/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -10,4 +10,8 @@ SUBDIR+=scp sftp ssh ssh-add ssh-agent s .endif .endif +.if ${MK_TESTS} != "no" +SUBDIR+=tests +.endif + .include Added: head/secure/usr.bin/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/secure/usr.bin/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/secure/usr.bin + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include Modified: head/secure/usr.sbin/Makefile ============================================================================== --- head/secure/usr.sbin/Makefile Mon Apr 21 19:33:27 2014 (r264740) +++ head/secure/usr.sbin/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -7,4 +7,8 @@ SUBDIR= SUBDIR+=sshd .endif +.if ${MK_TESTS} != "no" +SUBDIR+=tests +.endif + .include Added: head/secure/usr.sbin/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/secure/usr.sbin/tests/Makefile Mon Apr 21 21:39:25 2014 (r264741) @@ -0,0 +1,10 @@ +# $FreeBSD$ + +.include + +TESTSDIR= ${TESTSBASE}/secure/usr.sbin + +.PATH: ${.CURDIR:H:H:H}/tests +KYUAFILE= yes + +.include