2016-10-21 05:24:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2019-08-22 19:10:31 +00:00
|
|
|
.include <src.opts.mk>
|
2019-05-25 21:40:27 +00:00
|
|
|
.include <bsd.compiler.mk>
|
|
|
|
|
2016-10-21 05:24:08 +00:00
|
|
|
PACKAGE= tests
|
|
|
|
|
|
|
|
TESTSDIR= ${TESTSBASE}/sys/fs
|
|
|
|
|
|
|
|
TESTSRC= ${SRCTOP}/contrib/netbsd-tests/fs
|
|
|
|
|
|
|
|
#TESTS_SUBDIRS+= nullfs # XXX: needs rump
|
2019-08-22 19:10:31 +00:00
|
|
|
# fusefs tests cannot be compiled/used without the googletest infrastructure.
|
|
|
|
.if ${COMPILER_FEATURES:Mc++14} && ${MK_GOOGLETEST} != "no"
|
2020-01-06 18:25:58 +00:00
|
|
|
# Don't build fusefs tests for MIPS while LLVM PR 43263 is active, as part
|
|
|
|
# of the fusefs tests trigger excessively long compile time. The build does
|
|
|
|
# eventually succeed, but it's perhaps better to not do so by default for now.
|
|
|
|
.if ${MACHINE_CPUARCH} != "mips" || ${COMPILER_TYPE} != "clang"
|
2019-03-21 00:11:43 +00:00
|
|
|
TESTS_SUBDIRS+= fusefs
|
2019-05-25 21:40:27 +00:00
|
|
|
.endif
|
2020-01-06 18:25:58 +00:00
|
|
|
.endif
|
2016-10-21 05:24:08 +00:00
|
|
|
TESTS_SUBDIRS+= tmpfs
|
|
|
|
|
|
|
|
${PACKAGE}FILES+= h_funcs.subr
|
|
|
|
${PACKAGE}FILESDIR= ${TESTSDIR}
|
|
|
|
|
|
|
|
CLEANFILES+= h_funcs.subr
|
|
|
|
CLEANFILES+= h_funcs.subr.tmp
|
|
|
|
|
|
|
|
h_funcs.subr: ${TESTSRC}/h_funcs.subr
|
|
|
|
cat ${.ALLSRC} | \
|
|
|
|
sed -e '/atf_require_prog mount_$${name}/d' >>${.TARGET}.tmp
|
|
|
|
mv ${.TARGET}.tmp ${.TARGET}
|
|
|
|
|
|
|
|
.include <bsd.test.mk>
|