1# $FreeBSD$ 2 3TESTSRC= ${SRCTOP}/contrib/netbsd-tests/kernel 4.PATH: ${SRCTOP}/sys/kern 5 6TESTSDIR= ${TESTSBASE}/sys/kern 7 8#ATF_TESTS_C+= kcov 9ATF_TESTS_C+= kern_copyin 10ATF_TESTS_C+= kern_descrip_test 11ATF_TESTS_C+= kill_zombie 12ATF_TESTS_C+= memfd_test 13ATF_TESTS_C+= ptrace_test 14TEST_METADATA.ptrace_test+= timeout="15" 15ATF_TESTS_C+= reaper 16ATF_TESTS_C+= sigaltstack 17PLAIN_TESTS_C+= subr_unit_test 18ATF_TESTS_C+= sys_getrandom 19ATF_TESTS_C+= unix_passfd_test 20ATF_TESTS_C+= unix_seqpacket_test 21TEST_METADATA.unix_seqpacket_test+= timeout="15" 22ATF_TESTS_C+= unix_socketpair_test 23ATF_TESTS_C+= waitpid_nohang 24ATF_TESTS_C+= pdeathsig 25 26ATF_TESTS_SH+= coredump_phnum_test 27 28BINDIR= ${TESTSDIR} 29PROGS+= coredump_phnum_helper 30PROGS+= pdeathsig_helper 31 32CFLAGS.sys_getrandom+= -I${SRCTOP}/sys/contrib/zstd/lib 33LIBADD.sys_getrandom+= zstd 34LIBADD.sys_getrandom+= c 35LIBADD.sys_getrandom+= pthread 36LIBADD.ptrace_test+= pthread 37LIBADD.unix_seqpacket_test+= pthread 38LIBADD.kcov+= pthread 39 40NETBSD_ATF_TESTS_C+= lockf_test 41NETBSD_ATF_TESTS_C+= mqueue_test 42NETBSD_ATF_TESTS_C+= sysv_test 43 44CFLAGS.mqueue_test+= -I${SRCTOP}/tests 45LIBADD.mqueue_test+= rt 46 47.if ${MACHINE_ARCH} == "amd64" || \ 48 ${MACHINE_ARCH} == "i386" || \ 49 ${MACHINE_ARCH} == "aarch64" 50ATF_TESTS_C+= libkern_crc32 51.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" 52LDADD.libkern_crc32+= ${SRCTOP}/sys/libkern/x86/crc32_sse42.c 53.else 54LDADD.libkern_crc32+= ${SRCTOP}/sys/libkern/arm64/crc32c_armv8.S 55.endif 56.endif 57 58# subr_unit.c contains functions whose prototypes lie in headers that cannot be 59# included in userland. But as far as subr_unit_test goes, they're effectively 60# static. So it's ok to disable -Wmissing-prototypes for this program. 61CFLAGS.subr_unit.c+= -Wno-missing-prototypes 62SRCS.subr_unit_test+= subr_unit.c 63 64WARNS?= 3 65 66TESTS_SUBDIRS+= acct 67TESTS_SUBDIRS+= execve 68TESTS_SUBDIRS+= pipe 69 70.include <netbsd-tests.test.mk> 71 72.include <bsd.test.mk> 73