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