xref: /freebsd/tests/sys/fs/Makefile (revision a678e87f5533521f6dec1a4e85c3decb1c3b6584)
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
17TESTS_SUBDIRS+=		unionfs
18
19${PACKAGE}FILES+=	h_funcs.subr
20${PACKAGE}FILESDIR=	${TESTSDIR}
21
22CLEANFILES+=		h_funcs.subr
23CLEANFILES+=		h_funcs.subr.tmp
24
25h_funcs.subr: ${TESTSRC}/h_funcs.subr
26	cat ${.ALLSRC} | \
27	    sed -e '/atf_require_prog mount_$${name}/d' >>${.TARGET}.tmp
28	mv ${.TARGET}.tmp ${.TARGET}
29
30.include <bsd.test.mk>
31