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