Index: head/bin/cat/Makefile =================================================================== --- head/bin/cat/Makefile +++ head/bin/cat/Makefile @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= cat +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/chmod/Makefile =================================================================== --- head/bin/chmod/Makefile +++ head/bin/chmod/Makefile @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= chmod +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/date/Makefile =================================================================== --- head/bin/date/Makefile +++ head/bin/date/Makefile @@ -7,6 +7,7 @@ PROG= date SRCS= date.c netdate.c vary.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/dd/Makefile =================================================================== --- head/bin/dd/Makefile +++ head/bin/dd/Makefile @@ -38,6 +38,7 @@ @rm -f gen 1M_zeroes* obs_zeroes +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/echo/Makefile =================================================================== --- head/bin/echo/Makefile +++ head/bin/echo/Makefile @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= echo +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/expr/Makefile =================================================================== --- head/bin/expr/Makefile +++ head/bin/expr/Makefile @@ -12,6 +12,7 @@ NO_WMISSING_VARIABLE_DECLARATIONS= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/ln/Makefile =================================================================== --- head/bin/ln/Makefile +++ head/bin/ln/Makefile @@ -10,6 +10,7 @@ LINKS= ${BINDIR}/ln ${BINDIR}/link MLINKS= ln.1 link.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/ls/Makefile =================================================================== --- head/bin/ls/Makefile +++ head/bin/ls/Makefile @@ -14,6 +14,7 @@ LIBADD+= termcapw .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/mv/Makefile =================================================================== --- head/bin/mv/Makefile +++ head/bin/mv/Makefile @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= mv +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/pax/Makefile =================================================================== --- head/bin/pax/Makefile +++ head/bin/pax/Makefile @@ -33,6 +33,7 @@ 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 Index: head/bin/pkill/Makefile =================================================================== --- head/bin/pkill/Makefile +++ head/bin/pkill/Makefile @@ -19,6 +19,7 @@ SYMLINKS= ../..${BINDIR}/pkill /usr/bin/pkill SYMLINKS+= ../..${BINDIR}/pgrep /usr/bin/pgrep +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/pwait/Makefile =================================================================== --- head/bin/pwait/Makefile +++ head/bin/pwait/Makefile @@ -5,6 +5,7 @@ PACKAGE=runtime PROG= pwait +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/sh/Makefile =================================================================== --- head/bin/sh/Makefile +++ head/bin/sh/Makefile @@ -64,6 +64,7 @@ token.h: mktokens sh ${.CURDIR}/mktokens +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/sleep/Makefile =================================================================== --- head/bin/sleep/Makefile +++ head/bin/sleep/Makefile @@ -6,6 +6,7 @@ PACKAGE=runtime PROG= sleep +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/bin/test/Makefile =================================================================== --- head/bin/test/Makefile +++ head/bin/test/Makefile @@ -8,6 +8,7 @@ LINKS= ${BINDIR}/test ${BINDIR}/[ MLINKS= test.1 [.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/atf/libatf-c++/Makefile =================================================================== --- head/lib/atf/libatf-c++/Makefile +++ head/lib/atf/libatf-c++/Makefile @@ -72,6 +72,7 @@ MAN= atf-c++.3 MLINKS+= atf-c++.3 atf-c-api++.3 # Backwards compatibility. +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include "../common.mk" Index: head/lib/atf/libatf-c/Makefile =================================================================== --- head/lib/atf/libatf-c/Makefile +++ head/lib/atf/libatf-c/Makefile @@ -97,6 +97,7 @@ MAN= atf-c.3 MLINKS+= atf-c.3 atf-c-api.3 # Backwards compatibility. +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include "../common.mk" Index: head/lib/libarchive/Makefile =================================================================== --- head/lib/libarchive/Makefile +++ head/lib/libarchive/Makefile @@ -413,6 +413,7 @@ MLINKS+= archive_write_set_options.3 archive_write_set_option.3 MLINKS+= libarchive.3 archive.3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libc/Makefile =================================================================== --- head/lib/libc/Makefile +++ head/lib/libc/Makefile @@ -173,6 +173,7 @@ ${CP} ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH} .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libcam/Makefile =================================================================== --- head/lib/libcam/Makefile +++ head/lib/libcam/Makefile @@ -47,6 +47,7 @@ .include +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libcasper/services/cap_dns/Makefile =================================================================== --- head/lib/libcasper/services/cap_dns/Makefile +++ head/lib/libcasper/services/cap_dns/Makefile @@ -18,6 +18,7 @@ CFLAGS+=-I${.CURDIR} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libcasper/services/cap_grp/Makefile =================================================================== --- head/lib/libcasper/services/cap_grp/Makefile +++ head/lib/libcasper/services/cap_grp/Makefile @@ -18,6 +18,7 @@ CFLAGS+=-I${.CURDIR} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libcasper/services/cap_pwd/Makefile =================================================================== --- head/lib/libcasper/services/cap_pwd/Makefile +++ head/lib/libcasper/services/cap_pwd/Makefile @@ -18,6 +18,7 @@ CFLAGS+=-I${.CURDIR} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libcasper/services/cap_sysctl/Makefile =================================================================== --- head/lib/libcasper/services/cap_sysctl/Makefile +++ head/lib/libcasper/services/cap_sysctl/Makefile @@ -18,6 +18,7 @@ CFLAGS+=-I${.CURDIR} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libcrypt/Makefile =================================================================== --- head/lib/libcrypt/Makefile +++ head/lib/libcrypt/Makefile @@ -43,6 +43,7 @@ PRECIOUSLIB= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libkvm/Makefile =================================================================== --- head/lib/libkvm/Makefile +++ head/lib/libkvm/Makefile @@ -38,6 +38,7 @@ .include +HAS_TESTS= SUBDIR.${MK_TESTS}= tests .include Index: head/lib/libmp/Makefile =================================================================== --- head/lib/libmp/Makefile +++ head/lib/libmp/Makefile @@ -15,6 +15,7 @@ VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def SYMBOL_MAPS= ${.CURDIR}/Symbol.map +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libnv/Makefile =================================================================== --- head/lib/libnv/Makefile +++ head/lib/libnv/Makefile @@ -17,6 +17,7 @@ SRCS+= nvlist.c SRCS+= nvpair.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libpathconv/Makefile =================================================================== --- head/lib/libpathconv/Makefile +++ head/lib/libpathconv/Makefile @@ -13,6 +13,7 @@ #VERSION_DEF= ${SRCTOP/lib/libc/Versions.def #SYMBOL_MAPS= ${.CURDIR}/Symbol.map +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libproc/Makefile =================================================================== --- head/lib/libproc/Makefile +++ head/lib/libproc/Makefile @@ -41,6 +41,7 @@ MAN= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/librt/Makefile =================================================================== --- head/lib/librt/Makefile +++ head/lib/librt/Makefile @@ -21,6 +21,7 @@ VERSION_DEF=${SRCTOP}/lib/libc/Versions.def SYMBOL_MAPS=${.CURDIR}/Symbol.map +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libsbuf/Makefile =================================================================== --- head/lib/libsbuf/Makefile +++ head/lib/libsbuf/Makefile @@ -14,6 +14,7 @@ .PATH: ${SRCTOP}/sys/kern +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libthr/Makefile =================================================================== --- head/lib/libthr/Makefile +++ head/lib/libthr/Makefile @@ -69,6 +69,7 @@ SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libutil/Makefile =================================================================== --- head/lib/libutil/Makefile +++ head/lib/libutil/Makefile @@ -85,6 +85,7 @@ pw_util.3 pw_tempname.3 \ pw_util.3 pw_tmp.3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/libxo/Makefile =================================================================== --- head/lib/libxo/Makefile +++ head/lib/libxo/Makefile @@ -110,6 +110,7 @@ xo_syslog.3 xo_set_logmask.3 \ xo_syslog.3 xo_vsyslog.3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/lib/msun/Makefile =================================================================== --- head/lib/msun/Makefile +++ head/lib/msun/Makefile @@ -228,6 +228,7 @@ .include +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/libexec/atf/atf-check/Makefile =================================================================== --- head/libexec/atf/atf-check/Makefile +++ head/libexec/atf/atf-check/Makefile @@ -40,6 +40,7 @@ LIBADD= atf_cxx +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/libexec/atf/atf-sh/Makefile =================================================================== --- head/libexec/atf/atf-sh/Makefile +++ head/libexec/atf/atf-sh/Makefile @@ -72,6 +72,7 @@ SUBRDIR= ${SHAREDIR}/atf SUBR= libatf-sh.subr +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include "../../../lib/atf/common.mk" Index: head/libexec/rtld-elf/Makefile =================================================================== --- head/libexec/rtld-elf/Makefile +++ head/libexec/rtld-elf/Makefile @@ -85,6 +85,7 @@ .PATH: ${.CURDIR}/${RTLD_ARCH} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/sbin/devd/Makefile =================================================================== --- head/sbin/devd/Makefile +++ head/sbin/devd/Makefile @@ -18,6 +18,7 @@ CLEANFILES= y.output +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/sbin/dhclient/Makefile =================================================================== --- head/sbin/dhclient/Makefile +++ head/sbin/dhclient/Makefile @@ -46,6 +46,7 @@ WARNS?= 2 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/sbin/growfs/Makefile =================================================================== --- head/sbin/growfs/Makefile +++ head/sbin/growfs/Makefile @@ -22,6 +22,7 @@ LIBADD= util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/sbin/ifconfig/Makefile =================================================================== --- head/sbin/ifconfig/Makefile +++ head/sbin/ifconfig/Makefile @@ -67,6 +67,7 @@ CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs WARNS?= 2 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/sbin/mdconfig/Makefile =================================================================== --- head/sbin/mdconfig/Makefile +++ head/sbin/mdconfig/Makefile @@ -8,6 +8,7 @@ LIBADD= util geom +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/sbin/pfctl/Makefile =================================================================== --- head/sbin/pfctl/Makefile +++ head/sbin/pfctl/Makefile @@ -31,6 +31,7 @@ LIBADD= m md +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/share/examples/Makefile =================================================================== --- head/share/examples/Makefile +++ head/share/examples/Makefile @@ -266,6 +266,7 @@ .endif .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests SUBDIR_PARALLEL= Index: head/share/zoneinfo/Makefile =================================================================== --- head/share/zoneinfo/Makefile +++ head/share/zoneinfo/Makefile @@ -131,6 +131,7 @@ echo "Run tzsetup(8) manually to update /etc/localtime."; \ fi +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/tests/Makefile =================================================================== --- head/tests/Makefile +++ head/tests/Makefile @@ -17,4 +17,5 @@ install-tests-local: .PHONY ${INSTALL_SYMLINK} ../local/tests ${DESTDIR}${TESTSDIR}/local +.include "Makefile.inc0" .include Index: head/tests/Makefile.inc0 =================================================================== --- head/tests/Makefile.inc0 +++ head/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 Index: head/tests/etc/Makefile.inc =================================================================== --- head/tests/etc/Makefile.inc +++ head/tests/etc/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "${SRCTOP}/tests/Makefile.inc0" Index: head/tests/sys/Makefile.inc =================================================================== --- head/tests/sys/Makefile.inc +++ head/tests/sys/Makefile.inc @@ -1,3 +1,5 @@ # $FreeBSD$ WARNS?= 6 + +.include "${SRCTOP}/tests/Makefile.inc0" Index: head/tests/sys/geom/class/Makefile.inc =================================================================== --- head/tests/sys/geom/class/Makefile.inc +++ head/tests/sys/geom/class/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "${SRCTOP}/tests/Makefile.inc0" Index: head/tests/sys/pjdfstest/Makefile.inc =================================================================== --- head/tests/sys/pjdfstest/Makefile.inc +++ head/tests/sys/pjdfstest/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "${SRCTOP}/tests/Makefile.inc0" Index: head/tests/sys/pjdfstest/tests/Makefile.inc =================================================================== --- head/tests/sys/pjdfstest/tests/Makefile.inc +++ head/tests/sys/pjdfstest/tests/Makefile.inc @@ -0,0 +1,3 @@ +# $FreeBSD$ + +.include "../Makefile.inc" Index: head/usr.bin/apply/Makefile =================================================================== --- head/usr.bin/apply/Makefile +++ head/usr.bin/apply/Makefile @@ -7,6 +7,7 @@ LIBADD= sbuf +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/basename/Makefile =================================================================== --- head/usr.bin/basename/Makefile +++ head/usr.bin/basename/Makefile @@ -6,6 +6,7 @@ PROG= basename MLINKS= basename.1 dirname.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/bsdcat/Makefile =================================================================== --- head/usr.bin/bsdcat/Makefile +++ head/usr.bin/bsdcat/Makefile @@ -24,6 +24,7 @@ CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/calendar/Makefile =================================================================== --- head/usr.bin/calendar/Makefile +++ head/usr.bin/calendar/Makefile @@ -33,6 +33,7 @@ ${DESTDIR}${SHAREDIR}/calendar/${link} .endfor +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/cmp/Makefile =================================================================== --- head/usr.bin/cmp/Makefile +++ head/usr.bin/cmp/Makefile @@ -6,6 +6,7 @@ PROG= cmp SRCS= cmp.c link.c misc.c regular.c special.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/col/Makefile =================================================================== --- head/usr.bin/col/Makefile +++ head/usr.bin/col/Makefile @@ -5,6 +5,7 @@ PROG= col +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/comm/Makefile =================================================================== --- head/usr.bin/comm/Makefile +++ head/usr.bin/comm/Makefile @@ -5,6 +5,7 @@ PROG= comm +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/compress/Makefile =================================================================== --- head/usr.bin/compress/Makefile +++ head/usr.bin/compress/Makefile @@ -11,6 +11,7 @@ # XXX zopen is not part of libc # MAN=zopen.3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/cpio/Makefile =================================================================== --- head/usr.bin/cpio/Makefile +++ head/usr.bin/cpio/Makefile @@ -32,6 +32,7 @@ SYMLINKS=bsdcpio ${BINDIR}/cpio MLINKS= bsdcpio.1 cpio.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/csplit/Makefile =================================================================== --- head/usr.bin/csplit/Makefile +++ head/usr.bin/csplit/Makefile @@ -4,6 +4,7 @@ PROG= csplit +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/cut/Makefile =================================================================== --- head/usr.bin/cut/Makefile +++ head/usr.bin/cut/Makefile @@ -5,6 +5,7 @@ PROG= cut +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/diff/Makefile =================================================================== --- head/usr.bin/diff/Makefile +++ head/usr.bin/diff/Makefile @@ -5,6 +5,7 @@ PROG= diff SRCS= diff.c diffdir.c diffreg.c xmalloc.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/diff3/Makefile =================================================================== --- head/usr.bin/diff3/Makefile +++ head/usr.bin/diff3/Makefile @@ -4,6 +4,7 @@ PROG= diff3 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/dirname/Makefile =================================================================== --- head/usr.bin/dirname/Makefile +++ head/usr.bin/dirname/Makefile @@ -6,6 +6,7 @@ PROG= dirname MAN= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/du/Makefile =================================================================== --- head/usr.bin/du/Makefile +++ head/usr.bin/du/Makefile @@ -6,6 +6,7 @@ PROG= du LIBADD= util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/file2c/Makefile =================================================================== --- head/usr.bin/file2c/Makefile +++ head/usr.bin/file2c/Makefile @@ -4,6 +4,7 @@ PROG= file2c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/getconf/Makefile =================================================================== --- head/usr.bin/getconf/Makefile +++ head/usr.bin/getconf/Makefile @@ -37,6 +37,7 @@ unique.names: conflicting.names LC_ALL=C sort -u ${.ALLSRC} >${.TARGET} +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/grep/Makefile =================================================================== --- head/usr.bin/grep/Makefile +++ head/usr.bin/grep/Makefile @@ -92,6 +92,7 @@ CFLAGS+= -DWITHOUT_NLS .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/gzip/Makefile =================================================================== --- head/usr.bin/gzip/Makefile +++ head/usr.bin/gzip/Makefile @@ -27,6 +27,7 @@ ${BINDIR}/gzip ${BINDIR}/zcat \ ${BINDIR}/zdiff ${BINDIR}/zcmp +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/hexdump/Makefile =================================================================== --- head/usr.bin/hexdump/Makefile +++ head/usr.bin/hexdump/Makefile @@ -10,6 +10,7 @@ LINKS= ${BINDIR}/hexdump ${BINDIR}/od LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/ident/Makefile =================================================================== --- head/usr.bin/ident/Makefile +++ head/usr.bin/ident/Makefile @@ -6,6 +6,7 @@ LIBADD= sbuf +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/indent/Makefile =================================================================== --- head/usr.bin/indent/Makefile +++ head/usr.bin/indent/Makefile @@ -8,6 +8,7 @@ NO_WMISSING_VARIABLE_DECLARATIONS= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/join/Makefile =================================================================== --- head/usr.bin/join/Makefile +++ head/usr.bin/join/Makefile @@ -5,6 +5,7 @@ PROG= join +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/jot/Makefile =================================================================== --- head/usr.bin/jot/Makefile +++ head/usr.bin/jot/Makefile @@ -5,6 +5,7 @@ PROG= jot +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/lastcomm/Makefile =================================================================== --- head/usr.bin/lastcomm/Makefile +++ head/usr.bin/lastcomm/Makefile @@ -8,6 +8,7 @@ PROG= lastcomm SRCS= lastcomm.c readrec.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/limits/Makefile =================================================================== --- head/usr.bin/limits/Makefile +++ head/usr.bin/limits/Makefile @@ -5,6 +5,7 @@ PROG= limits LIBADD= util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/m4/Makefile =================================================================== --- head/usr.bin/m4/Makefile +++ head/usr.bin/m4/Makefile @@ -20,6 +20,7 @@ CLEANFILES+= parser.c parser.h tokenizer.o +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/mkimg/Makefile =================================================================== --- head/usr.bin/mkimg/Makefile +++ head/usr.bin/mkimg/Makefile @@ -35,6 +35,7 @@ WARNS?= 6 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/ncal/Makefile =================================================================== --- head/usr.bin/ncal/Makefile +++ head/usr.bin/ncal/Makefile @@ -9,6 +9,7 @@ LINKS= ${BINDIR}/ncal ${BINDIR}/cal MLINKS= ncal.1 cal.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/pr/Makefile =================================================================== --- head/usr.bin/pr/Makefile +++ head/usr.bin/pr/Makefile @@ -6,6 +6,7 @@ PROG= pr SRCS= pr.c egetopt.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/printf/Makefile =================================================================== --- head/usr.bin/printf/Makefile +++ head/usr.bin/printf/Makefile @@ -5,6 +5,7 @@ PROG= printf +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/procstat/Makefile =================================================================== --- head/usr.bin/procstat/Makefile +++ head/usr.bin/procstat/Makefile @@ -22,6 +22,7 @@ LIBADD+= procstat xo util sbuf +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/sdiff/Makefile =================================================================== --- head/usr.bin/sdiff/Makefile +++ head/usr.bin/sdiff/Makefile @@ -8,6 +8,7 @@ MAN1= sdiff.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/sed/Makefile =================================================================== --- head/usr.bin/sed/Makefile +++ head/usr.bin/sed/Makefile @@ -8,6 +8,7 @@ WARNS?= 2 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/soelim/Makefile =================================================================== --- head/usr.bin/soelim/Makefile +++ head/usr.bin/soelim/Makefile @@ -4,6 +4,7 @@ PROG= soelim +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/stat/Makefile =================================================================== --- head/usr.bin/stat/Makefile +++ head/usr.bin/stat/Makefile @@ -7,6 +7,7 @@ LINKS= ${BINDIR}/stat ${BINDIR}/readlink MLINKS= stat.1 readlink.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/tail/Makefile =================================================================== --- head/usr.bin/tail/Makefile +++ head/usr.bin/tail/Makefile @@ -6,6 +6,7 @@ PROG= tail SRCS= forward.c misc.c read.c reverse.c tail.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/tar/Makefile =================================================================== --- head/usr.bin/tar/Makefile +++ head/usr.bin/tar/Makefile @@ -33,6 +33,7 @@ SYMLINKS= bsdtar ${BINDIR}/tar MLINKS= bsdtar.1 tar.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/timeout/Makefile =================================================================== --- head/usr.bin/timeout/Makefile +++ head/usr.bin/timeout/Makefile @@ -4,6 +4,7 @@ PROG= timeout +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/tr/Makefile =================================================================== --- head/usr.bin/tr/Makefile +++ head/usr.bin/tr/Makefile @@ -6,6 +6,7 @@ PROG= tr SRCS= cmap.c cset.c str.c tr.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/truncate/Makefile =================================================================== --- head/usr.bin/truncate/Makefile +++ head/usr.bin/truncate/Makefile @@ -5,6 +5,7 @@ PROG= truncate LIBADD= util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/uniq/Makefile =================================================================== --- head/usr.bin/uniq/Makefile +++ head/usr.bin/uniq/Makefile @@ -5,6 +5,7 @@ PROG= uniq +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/units/Makefile =================================================================== --- head/usr.bin/units/Makefile +++ head/usr.bin/units/Makefile @@ -8,6 +8,7 @@ LIBADD= edit +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/uudecode/Makefile =================================================================== --- head/usr.bin/uudecode/Makefile +++ head/usr.bin/uudecode/Makefile @@ -7,6 +7,7 @@ LINKS= ${BINDIR}/uudecode ${BINDIR}/b64decode MAN= +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/uuencode/Makefile =================================================================== --- head/usr.bin/uuencode/Makefile +++ head/usr.bin/uuencode/Makefile @@ -11,6 +11,7 @@ uuencode.1 b64encode.1 \ b64encode.1 b64decode.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/xargs/Makefile =================================================================== --- head/usr.bin/xargs/Makefile +++ head/usr.bin/xargs/Makefile @@ -6,6 +6,7 @@ PROG= xargs SRCS= xargs.c strnsubst.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/xinstall/Makefile =================================================================== --- head/usr.bin/xinstall/Makefile +++ head/usr.bin/xinstall/Makefile @@ -14,6 +14,7 @@ LIBADD= md +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/xo/Makefile =================================================================== --- head/usr.bin/xo/Makefile +++ head/usr.bin/xo/Makefile @@ -18,6 +18,7 @@ LIBADD= xo util +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/yacc/Makefile =================================================================== --- head/usr.bin/yacc/Makefile +++ head/usr.bin/yacc/Makefile @@ -21,6 +21,7 @@ LINKS= ${BINDIR}/yacc ${BINDIR}/byacc MLINKS= yacc.1 byacc.1 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.sbin/chown/Makefile =================================================================== --- head/usr.sbin/chown/Makefile +++ head/usr.sbin/chown/Makefile @@ -7,6 +7,7 @@ LINKS= ${BINDIR}/chown /usr/bin/chgrp MAN= chgrp.1 chown.8 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.sbin/etcupdate/Makefile =================================================================== --- head/usr.sbin/etcupdate/Makefile +++ head/usr.sbin/etcupdate/Makefile @@ -5,6 +5,7 @@ SCRIPTS=etcupdate.sh MAN= etcupdate.8 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.sbin/extattr/Makefile =================================================================== --- head/usr.sbin/extattr/Makefile +++ head/usr.sbin/extattr/Makefile @@ -15,6 +15,7 @@ .include +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.sbin/fstyp/Makefile =================================================================== --- head/usr.sbin/fstyp/Makefile +++ head/usr.sbin/fstyp/Makefile @@ -16,6 +16,7 @@ .include .if ${TARGET_ENDIANNESS} == 1234 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .endif Index: head/usr.sbin/makefs/Makefile =================================================================== --- head/usr.sbin/makefs/Makefile +++ head/usr.sbin/makefs/Makefile @@ -35,6 +35,7 @@ CFLAGS+= -I${SRCTOP}/lib/libnetbsd LIBADD= netbsd util sbuf +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.sbin/newsyslog/Makefile =================================================================== --- head/usr.sbin/newsyslog/Makefile +++ head/usr.sbin/newsyslog/Makefile @@ -6,6 +6,7 @@ MAN= newsyslog.8 newsyslog.conf.5 SRCS= newsyslog.c ptimes.c +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.sbin/nmtree/Makefile =================================================================== --- head/usr.sbin/nmtree/Makefile +++ head/usr.sbin/nmtree/Makefile @@ -19,6 +19,7 @@ LINKS= ${BINDIR}/mtree ${BINDIR}/nmtree MLINKS= mtree.8 nmtree.8 +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.sbin/pw/Makefile =================================================================== --- head/usr.sbin/pw/Makefile +++ head/usr.sbin/pw/Makefile @@ -12,6 +12,7 @@ .include +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.sbin/rpcbind/Makefile =================================================================== --- head/usr.sbin/rpcbind/Makefile +++ head/usr.sbin/rpcbind/Makefile @@ -23,6 +23,7 @@ LIBADD+= wrap .endif +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests WARNS?= 1 Index: head/usr.sbin/sa/Makefile =================================================================== --- head/usr.sbin/sa/Makefile +++ head/usr.sbin/sa/Makefile @@ -10,6 +10,7 @@ PACKAGE=acct +HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include