MFhead@r321912

This commit is contained in:
ngie 2017-08-02 08:38:36 +00:00
parent a871f00559
commit 734d081ed1
117 changed files with 169 additions and 345 deletions

View File

@ -6,8 +6,6 @@
PACKAGE=runtime
PROG= cat
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -7,8 +7,6 @@ PACKAGE=runtime
PROG= date
SRCS= date.c netdate.c vary.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -38,8 +38,6 @@ test: ${PROG} gen
@rm -f gen 1M_zeroes* obs_zeroes
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@
PACKAGE=runtime
PROG= echo
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -12,8 +12,6 @@ CFLAGS+= -fwrapv
NO_WMISSING_VARIABLE_DECLARATIONS=
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -10,8 +10,6 @@ MAN= ln.1 symlink.7
LINKS= ${BINDIR}/ln ${BINDIR}/link
MLINKS= ln.1 link.1
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -14,8 +14,6 @@ CFLAGS+= -DCOLORLS
LIBADD+= termcapw
.endif
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@
PACKAGE=runtime
PROG= mv
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -33,8 +33,6 @@ SRCS= ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file_subs.c ftree.c \
gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c \
tables.c tar.c tty_subs.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -19,8 +19,6 @@ MLINKS= pkill.1 pgrep.1
SYMLINKS= ../..${BINDIR}/pkill /usr/bin/pkill
SYMLINKS+= ../..${BINDIR}/pgrep /usr/bin/pgrep
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -65,6 +65,6 @@ token.h: mktokens
sh ${.CURDIR}/mktokens
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@
PACKAGE=runtime
PROG= sleep
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -8,8 +8,6 @@ PROG= test
LINKS= ${BINDIR}/test ${BINDIR}/[
MLINKS= test.1 [.1
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,9 +5,7 @@
SUBDIR= lib .WAIT \
sbin usr.bin usr.sbin
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
SUBDIR.${MK_TESTS}+= tests
SUBDIR_PARALLEL=

View File

@ -12,11 +12,8 @@ SUBDIR= ${_drti} \
${_libzfs_core} \
${_libzfs} \
${_libzpool} \
${_tests}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.if ${MK_ZFS} != "no"
_libzfs_core= libzfs_core

View File

@ -2,11 +2,9 @@
.include <src.opts.mk>
SUBDIR= ${_tests} ${_zfs} ${_zpool}
SUBDIR= ${_zfs} ${_zpool}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.if ${MK_ZFS} != "no"
_zfs= zfs

View File

@ -6,15 +6,12 @@ SUBDIR= \
ctfconvert \
ctfdump \
ctfmerge \
${_tests} \
${_zinject} \
${_zlook} \
${_zstreamdump} \
${_ztest}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.if ${MK_ZFS} != "no"
_zinject= zinject

View File

@ -5,14 +5,11 @@
SUBDIR= ${_dtrace} \
${_lockstat} \
${_plockstat} \
${_tests} \
${_zdb} \
${_zfsd} \
${_zhack}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.if ${MK_ZFS} != "no"
.if ${MK_LIBTHR} != "no"

View File

@ -4,9 +4,7 @@ SUBDIR= ibaddr ibnetdiscover ibping ibportstate ibroute ibsendtrap ibstat \
ibsysstat ibtracert opensm perfquery saquery \
sminfo smpdump smpquery vendstat
.if ${MK_TESTS} != "no"
SUBDIR+= osmtest
.endif
SUBDIR.${MK_TESTS}+= tests
SUBDIR_PARALLEL=

View File

@ -4,11 +4,9 @@
.include <src.opts.mk>
SUBDIR= lib .WAIT \
${_tests} usr.bin
usr.bin
.if ${MK_TESTS} != "no"
_tests= tests
.endif
SUBDIR.${MK_TESTS}+= tests
SUBDIR_PARALLEL=

View File

@ -29,10 +29,7 @@
SUBDIR= libatf-c \
libatf-c++ \
${_tests}
.if ${MK_TESTS} != "no"
_tests= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.subdir.mk>

View File

@ -72,9 +72,7 @@ INCSDIR_atf-c++.hpp= ${INCLUDEDIR}
MAN= atf-c++.3
MLINKS+= atf-c++.3 atf-c-api++.3 # Backwards compatibility.
.if ${MK_TESTS} != "no"
SUBDIR= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include "../common.mk"
.include <bsd.lib.mk>

View File

@ -97,9 +97,7 @@ INCSDIR_atf-c.h= ${INCLUDEDIR}
MAN= atf-c.3
MLINKS+= atf-c.3 atf-c-api.3 # Backwards compatibility.
.if ${MK_TESTS} != "no"
SUBDIR= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include "../common.mk"
.include <bsd.lib.mk>

View File

@ -413,8 +413,6 @@ MLINKS+= archive_write_set_options.3 archive_write_set_format_option.3
MLINKS+= archive_write_set_options.3 archive_write_set_option.3
MLINKS+= libarchive.3 archive.3
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -173,9 +173,7 @@ libkern.${LIBC_ARCH}:: ${KMSRCS}
${CP} ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH}
.endif
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -18,8 +18,6 @@ LIBADD= nv
CFLAGS+=-I${.CURDIR}
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -18,8 +18,6 @@ LIBADD= nv
CFLAGS+=-I${.CURDIR}
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -18,8 +18,6 @@ LIBADD= nv
CFLAGS+=-I${.CURDIR}
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -18,8 +18,6 @@ LIBADD= nv
CFLAGS+=-I${.CURDIR}
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -43,9 +43,7 @@ WARNS?= 2
PRECIOUSLIB=
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
.include <bsd.subdir.mk>

View File

@ -15,8 +15,6 @@ CFLAGS+= -I${SRCTOP}/crypto
VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -17,8 +17,6 @@ SRCS+= msgio.c
SRCS+= nvlist.c
SRCS+= nvpair.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -13,8 +13,6 @@ SRCS= abs2rel.c rel2abs.c
#VERSION_DEF= ${SRCTOP/lib/libc/Versions.def
#SYMBOL_MAPS= ${.CURDIR}/Symbol.map
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -41,8 +41,6 @@ SHLIB_MAJOR= 4
MAN=
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -21,8 +21,6 @@ PRECIOUSLIB=
VERSION_DEF=${SRCTOP}/lib/libc/Versions.def
SYMBOL_MAPS=${.CURDIR}/Symbol.map
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -69,8 +69,6 @@ SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
.endif
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -84,8 +84,6 @@ MLINKS+=pw_util.3 pw_copy.3 \
pw_util.3 pw_tempname.3 \
pw_util.3 pw_tmp.3
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -110,8 +110,6 @@ MLINKS= xo_attr.3 xo_attr_h.3 \
xo_syslog.3 xo_set_logmask.3 \
xo_syslog.3 xo_vsyslog.3
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -228,8 +228,6 @@ MLINKS+=trunc.3 truncf.3 trunc.3 truncl.3
.include <src.opts.mk>
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>

View File

@ -40,8 +40,6 @@ CFLAGS+= -DATF_SHELL='"/bin/sh"'
LIBADD= atf_cxx
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -72,9 +72,7 @@ FILESGROUPS= SUBR
SUBRDIR= ${SHAREDIR}/atf
SUBR= libatf-sh.subr
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include "../../../lib/atf/common.mk"
.include <bsd.prog.mk>

View File

@ -85,9 +85,7 @@ beforeinstall:
.PATH: ${.CURDIR}/${RTLD_ARCH}
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
${PROG_FULL}: ${VERSION_MAP}

View File

@ -18,8 +18,6 @@ CFLAGS+=-I. -I${.CURDIR}
CLEANFILES= y.output
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -46,8 +46,6 @@ LIBADD= util
WARNS?= 2
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -22,8 +22,6 @@ NO_WCAST_ALIGN= yes
LIBADD= util
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -67,8 +67,6 @@ MAN= ifconfig.8
CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
WARNS?= 2
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -8,8 +8,6 @@ MAN= mdconfig.8
LIBADD= util geom
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -31,8 +31,6 @@ YFLAGS=
LIBADD= m md
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -3,12 +3,10 @@
.include <src.opts.mk>
SUBDIR= lib .WAIT \
libexec ${_tests} usr.bin usr.sbin
libexec usr.bin usr.sbin
SUBDIR_PARALLEL=
.if ${MK_TESTS} != "no"
_tests= tests
.endif
SUBDIR.${MK_TESTS}+= tests
# These are the programs which depend on crypto, but not Kerberos.
SPROGS= lib/libfetch lib/libpam lib/libradius lib/libtelnet \

View File

@ -10,8 +10,6 @@ SUBDIR+=libssh
.endif
.endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.subdir.mk>

View File

@ -7,9 +7,7 @@ SUBDIR=
SUBDIR+=sftp-server ssh-keysign ssh-pkcs11-helper
.endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
SUBDIR.${MK_TESTS}+= tests
SUBDIR_PARALLEL=

View File

@ -10,9 +10,7 @@ SUBDIR+=scp sftp ssh ssh-add ssh-agent ssh-keygen ssh-keyscan
.endif
.endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
SUBDIR.${MK_TESTS}+= tests
SUBDIR_PARALLEL=

View File

@ -7,9 +7,7 @@ SUBDIR=
SUBDIR+=sshd
.endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
SUBDIR.${MK_TESTS}+= tests
SUBDIR_PARALLEL=

View File

@ -26,7 +26,6 @@ SUBDIR= ${_colldef} \
${_syscons} \
tabset \
termcap \
${_tests} \
${_timedef} \
${_vt} \
${_zoneinfo}
@ -82,9 +81,7 @@ _doc= doc
_syscons= syscons
.endif
.if ${MK_TESTS} != "no"
_tests= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.if ${MK_VT} != "no"
_vt= vt

View File

@ -266,9 +266,7 @@ SUBDIR+=pf
.endif
.endif
.if ${MK_TESTS} != "no"
SUBDIR+=tests
.endif
SUBDIR.${MK_TESTS}+= tests
SUBDIR_PARALLEL=

View File

@ -131,8 +131,6 @@ afterinstall:
echo "Run tzsetup(8) manually to update /etc/localtime."; \
fi
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -84,6 +84,25 @@ struct sysentvec elf64_freebsd_sysvec = {
};
INIT_SYSENTVEC(elf64_sysvec, &elf64_freebsd_sysvec);
void
amd64_lower_shared_page(struct sysentvec *sv)
{
if (hw_lower_amd64_sharedpage != 0) {
sv->sv_maxuser -= PAGE_SIZE;
sv->sv_shared_page_base -= PAGE_SIZE;
sv->sv_usrstack -= PAGE_SIZE;
sv->sv_psstrings -= PAGE_SIZE;
}
}
/*
* Do this fixup before INIT_SYSENTVEC (SI_ORDER_ANY) because the latter
* uses the value of sv_shared_page_base.
*/
SYSINIT(elf64_sysvec_fixup, SI_SUB_EXEC, SI_ORDER_FIRST,
(sysinit_cfunc_t) amd64_lower_shared_page,
&elf64_freebsd_sysvec);
static Elf64_Brandinfo freebsd_brand_info = {
.brand = ELFOSABI_FREEBSD,
.machine = EM_X86_64,

View File

@ -48,6 +48,11 @@ __FBSDID("$FreeBSD$");
static int hw_instruction_sse;
SYSCTL_INT(_hw, OID_AUTO, instruction_sse, CTLFLAG_RD,
&hw_instruction_sse, 0, "SIMD/MMX2 instructions available in CPU");
static int lower_sharedpage_init;
int hw_lower_amd64_sharedpage;
SYSCTL_INT(_hw, OID_AUTO, lower_amd64_sharedpage, CTLFLAG_RDTUN,
&hw_lower_amd64_sharedpage, 0,
"Lower sharedpage to work around Ryzen issue with executing code near the top of user memory");
/*
* -1: automatic (default)
* 0: keep enable CLFLUSH
@ -122,6 +127,28 @@ init_amd(void)
wrmsr(0xc0011020, msr);
}
}
/*
* Work around a problem on Ryzen that is triggered by executing
* code near the top of user memory, in our case the signal
* trampoline code in the shared page on amd64.
*
* This function is executed once for the BSP before tunables take
* effect so the value determined here can be overridden by the
* tunable. This function is then executed again for each AP and
* also on resume. Set a flag the first time so that value set by
* the tunable is not overwritten.
*
* The stepping and/or microcode versions should be checked after
* this issue is fixed by AMD so that we don't use this mode if not
* needed.
*/
if (lower_sharedpage_init == 0) {
lower_sharedpage_init = 1;
if (CPUID_TO_FAMILY(cpu_id) == 0x17) {
hw_lower_amd64_sharedpage = 1;
}
}
}
/*

View File

@ -34,11 +34,14 @@
#include <x86/x86_var.h>
extern uint64_t *vm_page_dump;
extern uint64_t *vm_page_dump;
extern int hw_lower_amd64_sharedpage;
struct savefpu;
struct sysentvec;
void amd64_db_resume_dbreg(void);
void amd64_lower_shared_page(struct sysentvec *);
void amd64_syscall(struct thread *td, int traced);
void doreti_iret(void) __asm(__STRING(doreti_iret));
void doreti_iret_fault(void) __asm(__STRING(doreti_iret_fault));

View File

@ -833,6 +833,8 @@ static void
linux_vdso_install(void *param)
{
amd64_lower_shared_page(&elf_linux_sysvec);
linux_szsigcode = (&_binary_linux_locore_o_end -
&_binary_linux_locore_o_start);

View File

@ -7,8 +7,6 @@ PROG= apply
LIBADD= sbuf
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@
PROG= basename
MLINKS= basename.1 dirname.1
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -24,8 +24,6 @@ LIBADD= archive
CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const
.endif
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -33,8 +33,6 @@ beforeinstall:
${DESTDIR}${SHAREDIR}/calendar/${link}
.endfor
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@
PROG= cmp
SRCS= cmp.c link.c misc.c regular.c special.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= col
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= comm
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -11,8 +11,6 @@ MLINKS= compress.1 uncompress.1
# XXX zopen is not part of libc
# MAN=zopen.3
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -32,8 +32,6 @@ CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const
SYMLINKS=bsdcpio ${BINDIR}/cpio
MLINKS= bsdcpio.1 cpio.1
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -4,8 +4,6 @@
PROG= csplit
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= cut
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= diff
SRCS= diff.c diffdir.c diffreg.c xmalloc.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -4,8 +4,6 @@
PROG= diff3
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@
PROG= dirname
MAN=
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -4,8 +4,6 @@
PROG= file2c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -37,8 +37,6 @@ conflicting.names: confstr.names limits.names sysconf.names
unique.names: conflicting.names
LC_ALL=C sort -u ${.ALLSRC} >${.TARGET}
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -92,8 +92,6 @@ LIBADD+= gnuregex
CFLAGS+= -DWITHOUT_NLS
.endif
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -27,8 +27,6 @@ LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip \
${BINDIR}/gzip ${BINDIR}/zcat \
${BINDIR}/zdiff ${BINDIR}/zcmp
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -10,8 +10,6 @@ MLINKS= hexdump.1 hd.1
LINKS= ${BINDIR}/hexdump ${BINDIR}/od
LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@ PROG= ident
LIBADD= sbuf
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -8,8 +8,6 @@ SRCS= indent.c io.c lexi.c parse.c pr_comment.c args.c
NO_WMISSING_VARIABLE_DECLARATIONS=
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= join
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= jot
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -8,8 +8,6 @@ PACKAGE=acct
PROG= lastcomm
SRCS= lastcomm.c readrec.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= limits
LIBADD= util
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -20,8 +20,6 @@ tokenizer.o: parser.h
CLEANFILES+= parser.c parser.h tokenizer.o
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -35,8 +35,6 @@ LIBADD= util
WARNS?= 6
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -9,8 +9,6 @@ LIBADD= calendar ncursesw
LINKS= ${BINDIR}/ncal ${BINDIR}/cal
MLINKS= ncal.1 cal.1
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@
PROG= pr
SRCS= pr.c egetopt.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= printf
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -22,8 +22,6 @@ SRCS= procstat.c \
LIBADD+= procstat xo util sbuf
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -8,8 +8,6 @@ WARNS= 3
MAN1= sdiff.1
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -8,8 +8,6 @@ SRCS= compile.c main.c misc.c process.c
WARNS?= 2
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -4,8 +4,6 @@
PROG= soelim
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@
PROG= tail
SRCS= forward.c misc.c read.c reverse.c tail.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -33,8 +33,6 @@ CFLAGS+= -I${_LIBARCHIVEDIR}/libarchive_fe
SYMLINKS= bsdtar ${BINDIR}/tar
MLINKS= bsdtar.1 tar.1
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -4,8 +4,6 @@
PROG= timeout
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -6,8 +6,6 @@
PROG= tr
SRCS= cmap.c cset.c str.c tr.c
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= truncate
LIBADD= util
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -5,8 +5,6 @@
PROG= uniq
.if ${MK_TESTS} != "no"
SUBDIR+= tests
.endif
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

Some files were not shown because too many files have changed in this diff Show More