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