]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tests/sys/fs/Makefile
Merge ^/vendor/clang/dist up to its last change, and resolve conflicts.
[FreeBSD/FreeBSD.git] / tests / sys / fs / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4 .include <bsd.compiler.mk>
5
6 PACKAGE=                tests
7
8 TESTSDIR=               ${TESTSBASE}/sys/fs
9
10 TESTSRC=                ${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"
19 TESTS_SUBDIRS+=         fusefs
20 .endif
21 .endif
22 TESTS_SUBDIRS+=         tmpfs
23
24 ${PACKAGE}FILES+=       h_funcs.subr
25 ${PACKAGE}FILESDIR=     ${TESTSDIR}
26
27 CLEANFILES+=            h_funcs.subr
28 CLEANFILES+=            h_funcs.subr.tmp
29
30 h_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>