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