etc/protocols - sync with NetBSD-8
[minix.git] / tests / kernel / Makefile
blob6e2e723515f76e9356ab8897e17d90c55bc12420
1 # $NetBSD: Makefile,v 1.37 2015/06/22 00:05:23 matt Exp $
3 NOMAN= # defined
5 .include <bsd.own.mk>
7 TESTSDIR= ${TESTSBASE}/kernel
9 .if !defined(__MINIX)
10 TESTS_SUBDIRS= kqueue
11 .endif # !defined(__MINIX)
12 TESTS_C= t_lock
13 TESTS_C+= t_lockf
14 TESTS_C+= t_pty
15 .if !defined(__MINIX)
16 TESTS_C+= t_mqueue
17 TESTS_C+= t_sysv
18 TESTS_C+= t_subr_prf
19 .endif # !defined(__MINIX)
20 TESTS_C+= t_kauth_pr_47598
21 TESTS_C+= t_sysctl
23 TESTS_SH= t_umount
24 TESTS_SH+= t_umountstress
25 TESTS_SH+= t_ps_strings
27 BINDIR= ${TESTSDIR}
28 PROGS= h_ps_strings1
29 PROGS+= h_ps_strings2
31 LDADD.t_mqueue+= -lrt
34 .if (${MKRUMP} != "no") && !defined(BSD_MK_COMPAT_FILE)
35 TESTS_SUBDIRS+= tty
37 TESTS_C+= t_extattrctl
38 TESTS_C+= t_filedesc
39 TESTS_C+= t_rnd
40 LDADD.t_extattrctl+= -lrumpvfs -lrump -lrumpuser
41 LDADD.t_extattrctl+= -lrump -lpthread
42 LDADD.t_filedesc+= ${LDADD.t_rnd}
43 LDADD.t_rnd+= -lrumpvfs -lrumpdev_rnd -lrumpdev -lrump -lrumpuser
44 LDADD.t_rnd+= -lrump -lpthread
46 .endif
49 .if !defined(__MINIX)
50 .PATH: ${NETBSDSRCDIR}/sys/kern
51 TESTS_C+= t_extent
52 SRCS.t_extent= t_extent.c subr_extent.c
53 CPPFLAGS.t_extent.c= -D_EXTENT_TESTING -D__POOL_EXPOSE
54 CPPFLAGS.subr_extent.c= -D_EXTENT_TESTING -D__POOL_EXPOSE
56 t_subr_prf.c: gen_t_subr_prf ${NETBSDSRCDIR}/sys/kern/subr_prf.c
57 ${HOST_SH} ${.ALLSRC} ${.TARGET}
58 CPPFLAGS.t_subr_prf.c= -Wno-pointer-sign # XXX platform vs kernel SHA2
60 CLEANFILES+= t_subr_prf.c
61 .endif # !defined(__MINIX)
63 .include <bsd.test.mk>