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