From owner-svn-src-head@freebsd.org Mon Aug 14 19:21:48 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ABB3DDDF38D; Mon, 14 Aug 2017 19:21:48 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 552C06B8CA; Mon, 14 Aug 2017 19:21:48 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v7EJLlVv019975; Mon, 14 Aug 2017 19:21:47 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v7EJLboO019871; Mon, 14 Aug 2017 19:21:37 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201708141921.v7EJLboO019871@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Mon, 14 Aug 2017 19:21:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r322515 - in head: bin/cat bin/chmod bin/date bin/dd bin/echo bin/expr bin/ln bin/ls bin/mv bin/pax bin/pkill bin/pwait bin/sh bin/sleep bin/test lib/atf/libatf-c lib/atf/libatf-c++ lib... X-SVN-Group: head X-SVN-Commit-Author: ngie X-SVN-Commit-Paths: in head: bin/cat bin/chmod bin/date bin/dd bin/echo bin/expr bin/ln bin/ls bin/mv bin/pax bin/pkill bin/pwait bin/sh bin/sleep bin/test lib/atf/libatf-c lib/atf/libatf-c++ lib/libarchive lib/libc lib/... X-SVN-Commit-Revision: 322515 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2017 19:21:48 -0000 Author: ngie Date: Mon Aug 14 19:21:37 2017 New Revision: 322515 URL: https://svnweb.freebsd.org/changeset/base/322515 Log: Add supporting changes for `Add limited sandbox capability to "make check"` Non-tests/... changes: - Add HAS_TESTS= to Makefiles with libraries and programs to enable iteration and propagate the appropriate environment down to *.test.mk. tests/... changes: - Add appropriate support Makefile.inc's to set HAS_TESTS in a minimal manner, since tests/... is a special subdirectory tree compared to the others. MFC after: 2 months MFC with: r322511 Reviewed by: arch (silence), testing (silence) Differential Revision: D12014 Added: head/tests/Makefile.inc0 - copied unchanged from r322126, projects/make-check-sandbox/tests/Makefile.inc0 head/tests/etc/Makefile.inc - copied unchanged from r322126, projects/make-check-sandbox/tests/etc/Makefile.inc head/tests/sys/geom/class/Makefile.inc - copied unchanged from r322126, projects/make-check-sandbox/tests/sys/geom/class/Makefile.inc head/tests/sys/pjdfstest/Makefile.inc - copied unchanged from r322126, projects/make-check-sandbox/tests/sys/pjdfstest/Makefile.inc head/tests/sys/pjdfstest/tests/Makefile.inc - copied unchanged from r322126, projects/make-check-sandbox/tests/sys/pjdfstest/tests/Makefile.inc Modified: head/bin/cat/Makefile head/bin/chmod/Makefile head/bin/date/Makefile head/bin/dd/Makefile head/bin/echo/Makefile head/bin/expr/Makefile head/bin/ln/Makefile head/bin/ls/Makefile head/bin/mv/Makefile head/bin/pax/Makefile head/bin/pkill/Makefile head/bin/pwait/Makefile head/bin/sh/Makefile head/bin/sleep/Makefile head/bin/test/Makefile head/lib/atf/libatf-c++/Makefile head/lib/atf/libatf-c/Makefile head/lib/libarchive/Makefile head/lib/libc/Makefile head/lib/libcam/Makefile head/lib/libcasper/services/cap_dns/Makefile head/lib/libcasper/services/cap_grp/Makefile head/lib/libcasper/services/cap_pwd/Makefile head/lib/libcasper/services/cap_sysctl/Makefile head/lib/libcrypt/Makefile head/lib/libkvm/Makefile head/lib/libmp/Makefile head/lib/libnv/Makefile head/lib/libpathconv/Makefile head/lib/libproc/Makefile head/lib/librt/Makefile head/lib/libsbuf/Makefile head/lib/libthr/Makefile head/lib/libutil/Makefile head/lib/libxo/Makefile head/lib/msun/Makefile head/libexec/atf/atf-check/Makefile head/libexec/atf/atf-sh/Makefile head/libexec/rtld-elf/Makefile head/sbin/devd/Makefile head/sbin/dhclient/Makefile head/sbin/growfs/Makefile head/sbin/ifconfig/Makefile head/sbin/mdconfig/Makefile head/sbin/pfctl/Makefile head/share/examples/Makefile head/share/zoneinfo/Makefile head/tests/Makefile head/tests/sys/Makefile.inc head/usr.bin/apply/Makefile head/usr.bin/basename/Makefile head/usr.bin/bsdcat/Makefile head/usr.bin/calendar/Makefile head/usr.bin/cmp/Makefile head/usr.bin/col/Makefile head/usr.bin/comm/Makefile head/usr.bin/compress/Makefile head/usr.bin/cpio/Makefile head/usr.bin/csplit/Makefile head/usr.bin/cut/Makefile head/usr.bin/diff/Makefile head/usr.bin/diff3/Makefile head/usr.bin/dirname/Makefile head/usr.bin/du/Makefile head/usr.bin/file2c/Makefile head/usr.bin/getconf/Makefile head/usr.bin/grep/Makefile head/usr.bin/gzip/Makefile head/usr.bin/hexdump/Makefile head/usr.bin/ident/Makefile head/usr.bin/indent/Makefile head/usr.bin/join/Makefile head/usr.bin/jot/Makefile head/usr.bin/lastcomm/Makefile head/usr.bin/limits/Makefile head/usr.bin/m4/Makefile head/usr.bin/mkimg/Makefile head/usr.bin/ncal/Makefile head/usr.bin/pr/Makefile head/usr.bin/printf/Makefile head/usr.bin/procstat/Makefile head/usr.bin/sdiff/Makefile head/usr.bin/sed/Makefile head/usr.bin/soelim/Makefile head/usr.bin/stat/Makefile head/usr.bin/tail/Makefile head/usr.bin/tar/Makefile head/usr.bin/timeout/Makefile head/usr.bin/tr/Makefile head/usr.bin/truncate/Makefile head/usr.bin/uniq/Makefile head/usr.bin/units/Makefile head/usr.bin/uudecode/Makefile head/usr.bin/uuencode/Makefile head/usr.bin/xargs/Makefile head/usr.bin/xinstall/Makefile head/usr.bin/xo/Makefile head/usr.bin/yacc/Makefile head/usr.sbin/chown/Makefile head/usr.sbin/etcupdate/Makefile head/usr.sbin/extattr/Makefile head/usr.sbin/fstyp/Makefile head/usr.sbin/makefs/Makefile head/usr.sbin/newsyslog/Makefile head/usr.sbin/nmtree/Makefile head/usr.sbin/pw/Makefile head/usr.sbin/rpcbind/Makefile head/usr.sbin/sa/Makefile Modified: head/bin/cat/Makefile ============================================================================== --- head/bin/cat/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/cat/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= cat +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/chmod/Makefile ============================================================================== --- head/bin/chmod/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/chmod/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= chmod +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/date/Makefile ============================================================================== --- head/bin/date/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/date/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -7,6 +7,7 @@ PACKAGE=runtime PROG= date SRCS= date.c netdate.c vary.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/dd/Makefile ============================================================================== --- head/bin/dd/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/dd/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -38,6 +38,7 @@ test: ${PROG} gen @rm -f gen 1M_zeroes* obs_zeroes +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/echo/Makefile ============================================================================== --- head/bin/echo/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/echo/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= echo +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/expr/Makefile ============================================================================== --- head/bin/expr/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/expr/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -12,6 +12,7 @@ CFLAGS+= -fwrapv NO_WMISSING_VARIABLE_DECLARATIONS= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/ln/Makefile ============================================================================== --- head/bin/ln/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/ln/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -10,6 +10,7 @@ MAN= ln.1 symlink.7 LINKS= ${BINDIR}/ln ${BINDIR}/link MLINKS= ln.1 link.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/ls/Makefile ============================================================================== --- head/bin/ls/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/ls/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -14,6 +14,7 @@ CFLAGS+= -DCOLORLS LIBADD+= termcapw .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/mv/Makefile ============================================================================== --- head/bin/mv/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/mv/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= mv +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/pax/Makefile ============================================================================== --- head/bin/pax/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/pax/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -33,6 +33,7 @@ SRCS= ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c \ tables.c tar.c tty_subs.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/pkill/Makefile ============================================================================== --- head/bin/pkill/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/pkill/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -19,6 +19,7 @@ MLINKS= pkill.1 pgrep.1 SYMLINKS= ../..${BINDIR}/pkill /usr/bin/pkill SYMLINKS+= ../..${BINDIR}/pgrep /usr/bin/pgrep +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/pwait/Makefile ============================================================================== --- head/bin/pwait/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/pwait/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PACKAGE=runtime PROG= pwait +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/sh/Makefile ============================================================================== --- head/bin/sh/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/sh/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -64,6 +64,7 @@ syntax.c syntax.h: mksyntax token.h: mktokens sh ${.CURDIR}/mktokens +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/sleep/Makefile ============================================================================== --- head/bin/sleep/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/sleep/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= sleep +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/bin/test/Makefile ============================================================================== --- head/bin/test/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/bin/test/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -8,6 +8,7 @@ PROG= test LINKS= ${BINDIR}/test ${BINDIR}/[ MLINKS= test.1 [.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/atf/libatf-c++/Makefile ============================================================================== --- head/lib/atf/libatf-c++/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/atf/libatf-c++/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -72,6 +72,7 @@ INCSDIR_atf-c++.hpp= ${INCLUDEDIR} MAN= atf-c++.3 MLINKS+= atf-c++.3 atf-c-api++.3 # Backwards compatibility. +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include "../common.mk" Modified: head/lib/atf/libatf-c/Makefile ============================================================================== --- head/lib/atf/libatf-c/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/atf/libatf-c/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -97,6 +97,7 @@ INCSDIR_atf-c.h= ${INCLUDEDIR} MAN= atf-c.3 MLINKS+= atf-c.3 atf-c-api.3 # Backwards compatibility. +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include "../common.mk" Modified: head/lib/libarchive/Makefile ============================================================================== --- head/lib/libarchive/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libarchive/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -413,6 +413,7 @@ MLINKS+= archive_write_set_options.3 archive_write_set MLINKS+= archive_write_set_options.3 archive_write_set_option.3 MLINKS+= libarchive.3 archive.3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libc/Makefile ============================================================================== --- head/lib/libc/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libc/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -173,6 +173,7 @@ libkern.${LIBC_ARCH}:: ${KMSRCS} ${CP} ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH} .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libcam/Makefile ============================================================================== --- head/lib/libcam/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libcam/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -47,6 +47,7 @@ SHLIB_MAJOR= 7 .include +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libcasper/services/cap_dns/Makefile ============================================================================== --- head/lib/libcasper/services/cap_dns/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libcasper/services/cap_dns/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -18,6 +18,7 @@ LIBADD= nv CFLAGS+=-I${.CURDIR} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libcasper/services/cap_grp/Makefile ============================================================================== --- head/lib/libcasper/services/cap_grp/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libcasper/services/cap_grp/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -18,6 +18,7 @@ LIBADD= nv CFLAGS+=-I${.CURDIR} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libcasper/services/cap_pwd/Makefile ============================================================================== --- head/lib/libcasper/services/cap_pwd/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libcasper/services/cap_pwd/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -18,6 +18,7 @@ LIBADD= nv CFLAGS+=-I${.CURDIR} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libcasper/services/cap_sysctl/Makefile ============================================================================== --- head/lib/libcasper/services/cap_sysctl/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libcasper/services/cap_sysctl/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -18,6 +18,7 @@ LIBADD= nv CFLAGS+=-I${.CURDIR} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libcrypt/Makefile ============================================================================== --- head/lib/libcrypt/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libcrypt/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -43,6 +43,7 @@ WARNS?= 2 PRECIOUSLIB= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libkvm/Makefile ============================================================================== --- head/lib/libkvm/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libkvm/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -38,6 +38,7 @@ MLINKS+=kvm_read.3 kvm_read2.3 kvm_read.3 kvm_write.3 .include +HAS_TESTS= SUBDIR.${MK_TESTS}= tests .include Modified: head/lib/libmp/Makefile ============================================================================== --- head/lib/libmp/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libmp/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -15,6 +15,7 @@ CFLAGS+= -I${SRCTOP}/crypto VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def SYMBOL_MAPS= ${.CURDIR}/Symbol.map +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libnv/Makefile ============================================================================== --- head/lib/libnv/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libnv/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -17,6 +17,7 @@ SRCS+= msgio.c SRCS+= nvlist.c SRCS+= nvpair.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libpathconv/Makefile ============================================================================== --- head/lib/libpathconv/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libpathconv/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -13,6 +13,7 @@ SRCS= abs2rel.c rel2abs.c #VERSION_DEF= ${SRCTOP/lib/libc/Versions.def #SYMBOL_MAPS= ${.CURDIR}/Symbol.map +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libproc/Makefile ============================================================================== --- head/lib/libproc/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libproc/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -41,6 +41,7 @@ SHLIB_MAJOR= 4 MAN= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/librt/Makefile ============================================================================== --- head/lib/librt/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/librt/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -21,6 +21,7 @@ PRECIOUSLIB= VERSION_DEF=${SRCTOP}/lib/libc/Versions.def SYMBOL_MAPS=${.CURDIR}/Symbol.map +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libsbuf/Makefile ============================================================================== --- head/lib/libsbuf/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libsbuf/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -14,6 +14,7 @@ VERSION_DEF= ${.CURDIR}/Version.def .PATH: ${SRCTOP}/sys/kern +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libthr/Makefile ============================================================================== --- head/lib/libthr/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libthr/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -69,6 +69,7 @@ SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libutil/Makefile ============================================================================== --- head/lib/libutil/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libutil/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -85,6 +85,7 @@ MLINKS+=pw_util.3 pw_copy.3 \ pw_util.3 pw_tempname.3 \ pw_util.3 pw_tmp.3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/libxo/Makefile ============================================================================== --- head/lib/libxo/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/libxo/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -110,6 +110,7 @@ MLINKS= xo_attr.3 xo_attr_h.3 \ xo_syslog.3 xo_set_logmask.3 \ xo_syslog.3 xo_vsyslog.3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/lib/msun/Makefile ============================================================================== --- head/lib/msun/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/lib/msun/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -228,6 +228,7 @@ MLINKS+=trunc.3 truncf.3 trunc.3 truncl.3 .include +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/libexec/atf/atf-check/Makefile ============================================================================== --- head/libexec/atf/atf-check/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/libexec/atf/atf-check/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -40,6 +40,7 @@ CFLAGS+= -DATF_SHELL='"/bin/sh"' LIBADD= atf_cxx +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/libexec/atf/atf-sh/Makefile ============================================================================== --- head/libexec/atf/atf-sh/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/libexec/atf/atf-sh/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -72,6 +72,7 @@ FILESGROUPS= SUBR SUBRDIR= ${SHAREDIR}/atf SUBR= libatf-sh.subr +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include "../../../lib/atf/common.mk" Modified: head/libexec/rtld-elf/Makefile ============================================================================== --- head/libexec/rtld-elf/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/libexec/rtld-elf/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -85,6 +85,7 @@ beforeinstall: .PATH: ${.CURDIR}/${RTLD_ARCH} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/sbin/devd/Makefile ============================================================================== --- head/sbin/devd/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/sbin/devd/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -18,6 +18,7 @@ CFLAGS+=-I. -I${.CURDIR} CLEANFILES= y.output +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/sbin/dhclient/Makefile ============================================================================== --- head/sbin/dhclient/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/sbin/dhclient/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -46,6 +46,7 @@ LIBADD= util WARNS?= 2 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/sbin/growfs/Makefile ============================================================================== --- head/sbin/growfs/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/sbin/growfs/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -22,6 +22,7 @@ NO_WCAST_ALIGN= yes LIBADD= util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/sbin/ifconfig/Makefile ============================================================================== --- head/sbin/ifconfig/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/sbin/ifconfig/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -67,6 +67,7 @@ MAN= ifconfig.8 CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs WARNS?= 2 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/sbin/mdconfig/Makefile ============================================================================== --- head/sbin/mdconfig/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/sbin/mdconfig/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -8,6 +8,7 @@ MAN= mdconfig.8 LIBADD= util geom +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/sbin/pfctl/Makefile ============================================================================== --- head/sbin/pfctl/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/sbin/pfctl/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -31,6 +31,7 @@ YFLAGS= LIBADD= m md +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/share/examples/Makefile ============================================================================== --- head/share/examples/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/share/examples/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -266,6 +266,7 @@ SUBDIR+=pf .endif .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests SUBDIR_PARALLEL= Modified: head/share/zoneinfo/Makefile ============================================================================== --- head/share/zoneinfo/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/share/zoneinfo/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -131,6 +131,7 @@ afterinstall: echo "Run tzsetup(8) manually to update /etc/localtime."; \ fi +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/tests/Makefile ============================================================================== --- head/tests/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/tests/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -17,4 +17,5 @@ afterinstall: install-tests-local install-tests-local: .PHONY ${INSTALL_SYMLINK} ../local/tests ${DESTDIR}${TESTSDIR}/local +.include "Makefile.inc0" .include Copied: head/tests/Makefile.inc0 (from r322126, projects/make-check-sandbox/tests/Makefile.inc0) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tests/Makefile.inc0 Mon Aug 14 19:21:37 2017 (r322515, copy of r322126, projects/make-check-sandbox/tests/Makefile.inc0) @@ -0,0 +1,8 @@ +# $FreeBSD$ + +# tests/... doesn't conform to bsd.lib.mk and bsd.prog.mk, so specify a sane +# default for MK_CHECK_USE_SANDBOX. src.opts.mk will override the value if the +# user sets it to no. +MK_CHECK_USE_SANDBOX= yes + +.include Copied: head/tests/etc/Makefile.inc (from r322126, projects/make-check-sandbox/tests/etc/Makefile.inc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tests/etc/Makefile.inc Mon Aug 14 19:21:37 2017 (r322515, copy of r322126, projects/make-check-sandbox/tests/etc/Makefile.inc) @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "${SRCTOP}/tests/Makefile.inc0" Modified: head/tests/sys/Makefile.inc ============================================================================== --- head/tests/sys/Makefile.inc Mon Aug 14 19:18:50 2017 (r322514) +++ head/tests/sys/Makefile.inc Mon Aug 14 19:21:37 2017 (r322515) @@ -1,3 +1,5 @@ # $FreeBSD$ WARNS?= 6 + +.include "${SRCTOP}/tests/Makefile.inc0" Copied: head/tests/sys/geom/class/Makefile.inc (from r322126, projects/make-check-sandbox/tests/sys/geom/class/Makefile.inc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tests/sys/geom/class/Makefile.inc Mon Aug 14 19:21:37 2017 (r322515, copy of r322126, projects/make-check-sandbox/tests/sys/geom/class/Makefile.inc) @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "${SRCTOP}/tests/Makefile.inc0" Copied: head/tests/sys/pjdfstest/Makefile.inc (from r322126, projects/make-check-sandbox/tests/sys/pjdfstest/Makefile.inc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tests/sys/pjdfstest/Makefile.inc Mon Aug 14 19:21:37 2017 (r322515, copy of r322126, projects/make-check-sandbox/tests/sys/pjdfstest/Makefile.inc) @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "${SRCTOP}/tests/Makefile.inc0" Copied: head/tests/sys/pjdfstest/tests/Makefile.inc (from r322126, projects/make-check-sandbox/tests/sys/pjdfstest/tests/Makefile.inc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tests/sys/pjdfstest/tests/Makefile.inc Mon Aug 14 19:21:37 2017 (r322515, copy of r322126, projects/make-check-sandbox/tests/sys/pjdfstest/tests/Makefile.inc) @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" Modified: head/usr.bin/apply/Makefile ============================================================================== --- head/usr.bin/apply/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/apply/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -7,6 +7,7 @@ PROG= apply LIBADD= sbuf +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/basename/Makefile ============================================================================== --- head/usr.bin/basename/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/basename/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PROG= basename MLINKS= basename.1 dirname.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/bsdcat/Makefile ============================================================================== --- head/usr.bin/bsdcat/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/bsdcat/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -24,6 +24,7 @@ LIBADD= archive CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/calendar/Makefile ============================================================================== --- head/usr.bin/calendar/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/calendar/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -33,6 +33,7 @@ beforeinstall: ${DESTDIR}${SHAREDIR}/calendar/${link} .endfor +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/cmp/Makefile ============================================================================== --- head/usr.bin/cmp/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/cmp/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PROG= cmp SRCS= cmp.c link.c misc.c regular.c special.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/col/Makefile ============================================================================== --- head/usr.bin/col/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/col/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= col +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/comm/Makefile ============================================================================== --- head/usr.bin/comm/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/comm/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= comm +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/compress/Makefile ============================================================================== --- head/usr.bin/compress/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/compress/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -11,6 +11,7 @@ MLINKS= compress.1 uncompress.1 # XXX zopen is not part of libc # MAN=zopen.3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/cpio/Makefile ============================================================================== --- head/usr.bin/cpio/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/cpio/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -32,6 +32,7 @@ CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST SYMLINKS=bsdcpio ${BINDIR}/cpio MLINKS= bsdcpio.1 cpio.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/csplit/Makefile ============================================================================== --- head/usr.bin/csplit/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/csplit/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -4,6 +4,7 @@ PROG= csplit +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/cut/Makefile ============================================================================== --- head/usr.bin/cut/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/cut/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= cut +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/diff/Makefile ============================================================================== --- head/usr.bin/diff/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/diff/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= diff SRCS= diff.c diffdir.c diffreg.c xmalloc.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/diff3/Makefile ============================================================================== --- head/usr.bin/diff3/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/diff3/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -4,6 +4,7 @@ PROG= diff3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/dirname/Makefile ============================================================================== --- head/usr.bin/dirname/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/dirname/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PROG= dirname MAN= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/du/Makefile ============================================================================== --- head/usr.bin/du/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/du/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PROG= du LIBADD= util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/file2c/Makefile ============================================================================== --- head/usr.bin/file2c/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/file2c/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -4,6 +4,7 @@ PROG= file2c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/getconf/Makefile ============================================================================== --- head/usr.bin/getconf/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/getconf/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -37,6 +37,7 @@ conflicting.names: confstr.names limits.names sysconf. unique.names: conflicting.names LC_ALL=C sort -u ${.ALLSRC} >${.TARGET} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/grep/Makefile ============================================================================== --- head/usr.bin/grep/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/grep/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -92,6 +92,7 @@ LIBADD+= gnuregex CFLAGS+= -DWITHOUT_NLS .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/gzip/Makefile ============================================================================== --- head/usr.bin/gzip/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/gzip/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -27,6 +27,7 @@ LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip \ ${BINDIR}/gzip ${BINDIR}/zcat \ ${BINDIR}/zdiff ${BINDIR}/zcmp +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/hexdump/Makefile ============================================================================== --- head/usr.bin/hexdump/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/hexdump/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -10,6 +10,7 @@ MLINKS= hexdump.1 hd.1 LINKS= ${BINDIR}/hexdump ${BINDIR}/od LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/ident/Makefile ============================================================================== --- head/usr.bin/ident/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/ident/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PROG= ident LIBADD= sbuf +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/indent/Makefile ============================================================================== --- head/usr.bin/indent/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/indent/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -8,6 +8,7 @@ SRCS= indent.c io.c lexi.c parse.c pr_comment.c args.c NO_WMISSING_VARIABLE_DECLARATIONS= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/join/Makefile ============================================================================== --- head/usr.bin/join/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/join/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= join +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/jot/Makefile ============================================================================== --- head/usr.bin/jot/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/jot/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= jot +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/lastcomm/Makefile ============================================================================== --- head/usr.bin/lastcomm/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/lastcomm/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -8,6 +8,7 @@ PACKAGE=acct PROG= lastcomm SRCS= lastcomm.c readrec.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/limits/Makefile ============================================================================== --- head/usr.bin/limits/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/limits/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= limits LIBADD= util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/m4/Makefile ============================================================================== --- head/usr.bin/m4/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/m4/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -20,6 +20,7 @@ tokenizer.o: parser.h CLEANFILES+= parser.c parser.h tokenizer.o +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/mkimg/Makefile ============================================================================== --- head/usr.bin/mkimg/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/mkimg/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -35,6 +35,7 @@ LIBADD= util WARNS?= 6 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/ncal/Makefile ============================================================================== --- head/usr.bin/ncal/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/ncal/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -9,6 +9,7 @@ LIBADD= calendar ncursesw LINKS= ${BINDIR}/ncal ${BINDIR}/cal MLINKS= ncal.1 cal.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/pr/Makefile ============================================================================== --- head/usr.bin/pr/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/pr/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PROG= pr SRCS= pr.c egetopt.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/printf/Makefile ============================================================================== --- head/usr.bin/printf/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/printf/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= printf +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/procstat/Makefile ============================================================================== --- head/usr.bin/procstat/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/procstat/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -22,6 +22,7 @@ SRCS= procstat.c \ LIBADD+= procstat xo util sbuf +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/sdiff/Makefile ============================================================================== --- head/usr.bin/sdiff/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/sdiff/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -8,6 +8,7 @@ WARNS= 3 MAN1= sdiff.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/sed/Makefile ============================================================================== --- head/usr.bin/sed/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/sed/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -8,6 +8,7 @@ SRCS= compile.c main.c misc.c process.c WARNS?= 2 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/soelim/Makefile ============================================================================== --- head/usr.bin/soelim/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/soelim/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -4,6 +4,7 @@ PROG= soelim +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/stat/Makefile ============================================================================== --- head/usr.bin/stat/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/stat/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -7,6 +7,7 @@ PROG= stat LINKS= ${BINDIR}/stat ${BINDIR}/readlink MLINKS= stat.1 readlink.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/tail/Makefile ============================================================================== --- head/usr.bin/tail/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/tail/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PROG= tail SRCS= forward.c misc.c read.c reverse.c tail.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/tar/Makefile ============================================================================== --- head/usr.bin/tar/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/tar/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -33,6 +33,7 @@ CFLAGS+= -I${_LIBARCHIVEDIR}/libarchive_fe SYMLINKS= bsdtar ${BINDIR}/tar MLINKS= bsdtar.1 tar.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/timeout/Makefile ============================================================================== --- head/usr.bin/timeout/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/timeout/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -4,6 +4,7 @@ PROG= timeout +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/tr/Makefile ============================================================================== --- head/usr.bin/tr/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/tr/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PROG= tr SRCS= cmap.c cset.c str.c tr.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/truncate/Makefile ============================================================================== --- head/usr.bin/truncate/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/truncate/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= truncate LIBADD= util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/uniq/Makefile ============================================================================== --- head/usr.bin/uniq/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/uniq/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -5,6 +5,7 @@ PROG= uniq +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/units/Makefile ============================================================================== --- head/usr.bin/units/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/units/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -8,6 +8,7 @@ FILESDIR= ${SHAREDIR}/misc LIBADD= edit +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/uudecode/Makefile ============================================================================== --- head/usr.bin/uudecode/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/uudecode/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -7,6 +7,7 @@ PROG= uudecode LINKS= ${BINDIR}/uudecode ${BINDIR}/b64decode MAN= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/uuencode/Makefile ============================================================================== --- head/usr.bin/uuencode/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/uuencode/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -11,6 +11,7 @@ MLINKS= uuencode.1 uudecode.1 \ uuencode.1 b64encode.1 \ b64encode.1 b64decode.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/xargs/Makefile ============================================================================== --- head/usr.bin/xargs/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/xargs/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -6,6 +6,7 @@ PROG= xargs SRCS= xargs.c strnsubst.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/xinstall/Makefile ============================================================================== --- head/usr.bin/xinstall/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/xinstall/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -14,6 +14,7 @@ CFLAGS+= -I${SRCTOP}/lib/libnetbsd LIBADD= md +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Modified: head/usr.bin/xo/Makefile ============================================================================== --- head/usr.bin/xo/Makefile Mon Aug 14 19:18:50 2017 (r322514) +++ head/usr.bin/xo/Makefile Mon Aug 14 19:21:37 2017 (r322515) @@ -18,6 +18,7 @@ CFLAGS+=-I${SRCTOP}/lib/libxo LIBADD= xo util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***