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