xref: /freebsd/tests/sys/fs/Makefile (revision 5b56413d04e608379c9a306373554a8e4d321bc0)
1.include <src.opts.mk>
2.include <bsd.compiler.mk>
3
4PACKAGE=		tests
5
6TESTSDIR=		${TESTSBASE}/sys/fs
7
8TESTSRC=		${SRCTOP}/contrib/netbsd-tests/fs
9
10#TESTS_SUBDIRS+=	nullfs	# XXX: needs rump
11# fusefs tests cannot be compiled/used without the googletest infrastructure.
12.if ${COMPILER_FEATURES:Mc++14} && ${MK_GOOGLETEST} != "no"
13TESTS_SUBDIRS+=		fusefs
14.endif
15TESTS_SUBDIRS+=		tarfs
16TESTS_SUBDIRS+=		tmpfs
17
18${PACKAGE}FILES+=	h_funcs.subr
19${PACKAGE}FILESDIR=	${TESTSDIR}
20
21CLEANFILES+=		h_funcs.subr
22CLEANFILES+=		h_funcs.subr.tmp
23
24h_funcs.subr: ${TESTSRC}/h_funcs.subr
25	cat ${.ALLSRC} | \
26	    sed -e '/atf_require_prog mount_$${name}/d' >>${.TARGET}.tmp
27	mv ${.TARGET}.tmp ${.TARGET}
28
29.include <bsd.test.mk>
30