xref: /freebsd/tests/sys/fs/Makefile (revision eda14cbc264d6969b02f2b1994cef11148e914f1)
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"
15# Don't build fusefs tests for MIPS while LLVM PR 43263 is active, as part
16# of the fusefs tests trigger excessively long compile time.  The build does
17# eventually succeed, but it's perhaps better to not do so by default for now.
18.if ${MACHINE_CPUARCH} != "mips" || ${COMPILER_TYPE} != "clang"
19TESTS_SUBDIRS+=		fusefs
20.endif
21.endif
22TESTS_SUBDIRS+=		tmpfs
23
24${PACKAGE}FILES+=	h_funcs.subr
25${PACKAGE}FILESDIR=	${TESTSDIR}
26
27CLEANFILES+=		h_funcs.subr
28CLEANFILES+=		h_funcs.subr.tmp
29
30h_funcs.subr: ${TESTSRC}/h_funcs.subr
31	cat ${.ALLSRC} | \
32	    sed -e '/atf_require_prog mount_$${name}/d' >>${.TARGET}.tmp
33	mv ${.TARGET}.tmp ${.TARGET}
34
35.include <bsd.test.mk>
36