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