xref: /freebsd/tests/sys/fs/Makefile (revision e1e636193db45630c7881246d25902e57c43d24e)
1
2.include <src.opts.mk>
3.include <bsd.compiler.mk>
4
5PACKAGE=		tests
6
7TESTSDIR=		${TESTSBASE}/sys/fs
8
9TESTSRC=		${SRCTOP}/contrib/netbsd-tests/fs
10
11#TESTS_SUBDIRS+=	nullfs	# XXX: needs rump
12# fusefs tests cannot be compiled/used without the googletest infrastructure.
13.if ${COMPILER_FEATURES:Mc++14} && ${MK_GOOGLETEST} != "no"
14TESTS_SUBDIRS+=		fusefs
15.endif
16TESTS_SUBDIRS+=		tarfs
17TESTS_SUBDIRS+=		tmpfs
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