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+= ptrace_test 12TEST_METADATA.ptrace_test+= timeout="15" 13ATF_TESTS_C+= reaper 14ATF_TESTS_C+= sigaltstack 15PLAIN_TESTS_C+= subr_unit_test 16ATF_TESTS_C+= sys_getrandom 17ATF_TESTS_C+= unix_passfd_test 18ATF_TESTS_C+= unix_seqpacket_test 19TEST_METADATA.unix_seqpacket_test+= timeout="15" 20ATF_TESTS_C+= unix_socketpair_test 21ATF_TESTS_C+= waitpid_nohang 22ATF_TESTS_C+= pdeathsig 23 24ATF_TESTS_SH+= coredump_phnum_test 25 26BINDIR= ${TESTSDIR} 27PROGS+= coredump_phnum_helper 28PROGS+= pdeathsig_helper 29 30CFLAGS.sys_getrandom+= -I${SRCTOP}/sys/contrib/zstd/lib 31LIBADD.sys_getrandom+= zstd 32LIBADD.sys_getrandom+= c 33LIBADD.sys_getrandom+= pthread 34LIBADD.ptrace_test+= pthread 35LIBADD.unix_seqpacket_test+= pthread 36LIBADD.kcov+= pthread 37 38NETBSD_ATF_TESTS_C+= lockf_test 39NETBSD_ATF_TESTS_C+= mqueue_test 40NETBSD_ATF_TESTS_C+= sysv_test 41 42CFLAGS.mqueue_test+= -I${SRCTOP}/tests 43LIBADD.mqueue_test+= rt 44 45.if ${MACHINE_ARCH} == "amd64" || \ 46 ${MACHINE_ARCH} == "i386" || \ 47 ${MACHINE_ARCH} == "aarch64" 48ATF_TESTS_C+= libkern_crc32 49CFLAGS.libkern_crc32+= -DUSERSPACE_TESTING 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