summaryrefslogtreecommitdiff
path: root/tests/sys/fs/Makefile
blob: 254394f437149a24cb3e3dea5f17355fbaa4277a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.include <src.opts.mk>
.include <bsd.compiler.mk>

PACKAGE=		tests

TESTSDIR=		${TESTSBASE}/sys/fs

TESTSRC=		${SRCTOP}/contrib/netbsd-tests/fs

#TESTS_SUBDIRS+=	nullfs	# XXX: needs rump
# fusefs tests cannot be compiled/used without the googletest infrastructure.
.if ${COMPILER_FEATURES:Mc++14} && ${MK_GOOGLETEST} != "no"
TESTS_SUBDIRS+=		fusefs
.endif
TESTS_SUBDIRS+=		tarfs
TESTS_SUBDIRS+=		tmpfs
TESTS_SUBDIRS+=		unionfs

${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>