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