]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tests/sys/kern/Makefile
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed
[FreeBSD/FreeBSD.git] / tests / sys / kern / Makefile
1 # $FreeBSD$
2
3 TESTSRC=        ${SRCTOP}/contrib/netbsd-tests/kernel
4 .PATH:          ${SRCTOP}/sys/kern
5
6 TESTSDIR=       ${TESTSBASE}/sys/kern
7
8 ATF_TESTS_C+=   kern_copyin
9 ATF_TESTS_C+=   kern_descrip_test
10 ATF_TESTS_C+=   ptrace_test
11 PLAIN_TESTS_C+= subr_unit_test
12 ATF_TESTS_C+=   unix_seqpacket_test
13 ATF_TESTS_C+=   unix_passfd_test
14 TEST_METADATA.unix_seqpacket_test+=     timeout="15"
15
16 LIBADD.ptrace_test+=                    pthread
17 LIBADD.unix_seqpacket_test+=            pthread
18
19 NETBSD_ATF_TESTS_C+=    lockf_test
20 NETBSD_ATF_TESTS_C+=    mqueue_test
21
22 CFLAGS.mqueue_test+=    -I${SRCTOP}/tests
23 LIBADD.mqueue_test+=    rt
24
25 # subr_unit.c contains functions whose prototypes lie in headers that cannot be
26 # included in userland.  But as far as subr_unit_test goes, they're effectively
27 # static.  So it's ok to disable -Wmissing-prototypes for this program.
28 CFLAGS.subr_unit.c+=    -Wno-missing-prototypes
29 # XXX: -Wno-sign-compare will be eliminated as part of D6004
30 CFLAGS.subr_unit.c+=    -Wno-sign-compare
31 SRCS.subr_unit_test+=   subr_unit.c
32
33 WARNS?= 5
34
35 TESTS_SUBDIRS+= acct
36 TESTS_SUBDIRS+= execve
37 TESTS_SUBDIRS+= pipe
38
39 .include <netbsd-tests.test.mk>
40
41 .include <bsd.test.mk>