xref: /freebsd/tests/sys/fs/Makefile (revision c7046f76)
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+=		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