Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/fs/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
.include <bsd.compiler.mk> | .include <bsd.compiler.mk> | ||||
PACKAGE= tests | PACKAGE= tests | ||||
TESTSDIR= ${TESTSBASE}/sys/fs | TESTSDIR= ${TESTSBASE}/sys/fs | ||||
TESTSRC= ${SRCTOP}/contrib/netbsd-tests/fs | TESTSRC= ${SRCTOP}/contrib/netbsd-tests/fs | ||||
#TESTS_SUBDIRS+= nullfs # XXX: needs rump | #TESTS_SUBDIRS+= nullfs # XXX: needs rump | ||||
# fusefs tests cannot be compiled/used without the googletest infrastructure. | # fusefs tests cannot be compiled/used without the googletest infrastructure. | ||||
.if ${COMPILER_FEATURES:Mc++14} && ${MK_GOOGLETEST} != "no" | .if ${COMPILER_FEATURES:Mc++14} && ${MK_GOOGLETEST} != "no" | ||||
# 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" | |||||
TESTS_SUBDIRS+= fusefs | TESTS_SUBDIRS+= fusefs | ||||
.endif | |||||
.endif | .endif | ||||
TESTS_SUBDIRS+= tmpfs | TESTS_SUBDIRS+= tmpfs | ||||
${PACKAGE}FILES+= h_funcs.subr | ${PACKAGE}FILES+= h_funcs.subr | ||||
${PACKAGE}FILESDIR= ${TESTSDIR} | ${PACKAGE}FILESDIR= ${TESTSDIR} | ||||
CLEANFILES+= h_funcs.subr | CLEANFILES+= h_funcs.subr | ||||
CLEANFILES+= h_funcs.subr.tmp | CLEANFILES+= h_funcs.subr.tmp | ||||
h_funcs.subr: ${TESTSRC}/h_funcs.subr | h_funcs.subr: ${TESTSRC}/h_funcs.subr | ||||
cat ${.ALLSRC} | \ | cat ${.ALLSRC} | \ | ||||
sed -e '/atf_require_prog mount_$${name}/d' >>${.TARGET}.tmp | sed -e '/atf_require_prog mount_$${name}/d' >>${.TARGET}.tmp | ||||
mv ${.TARGET}.tmp ${.TARGET} | mv ${.TARGET}.tmp ${.TARGET} | ||||
.include <bsd.test.mk> | .include <bsd.test.mk> |