xref: /freebsd/tests/sys/fs/tmpfs/Makefile (revision b59017c5cad90d0f09a59e68c00457b7faf93e7c)
1PACKAGE=		tests
2
3FILESYSTEM?=		${.CURDIR:T}
4
5TESTSDIR=		${TESTSBASE}/sys/fs/${FILESYSTEM}
6
7TESTSRC=		${SRCTOP}/contrib/netbsd-tests/fs/${FILESYSTEM}
8
9# XXX: uses /dev/MAKEDEV to create pseudo /dev/{null,zero} character devices
10#NETBSD_ATF_TESTS_SH+=	devices_test
11NETBSD_ATF_TESTS_SH+=	create_test
12NETBSD_ATF_TESTS_SH+=	read_write_test
13NETBSD_ATF_TESTS_SH+=	dots_test
14NETBSD_ATF_TESTS_SH+=	exec_test
15NETBSD_ATF_TESTS_SH+=	link_test
16NETBSD_ATF_TESTS_SH+=	mkdir_test
17NETBSD_ATF_TESTS_SH+=	mknod_test
18NETBSD_ATF_TESTS_SH+=	mount_test
19# XXX: need to replace `mknod ... p` with something more sensible
20#NETBSD_ATF_TESTS_SH+=	pipes_test
21NETBSD_ATF_TESTS_SH+=	trail_slash_test
22NETBSD_ATF_TESTS_SH+=	readdir_test
23NETBSD_ATF_TESTS_SH+=	remove_test
24NETBSD_ATF_TESTS_SH+=	rename_test
25NETBSD_ATF_TESTS_SH+=	rmdir_test
26NETBSD_ATF_TESTS_SH+=	setattr_test
27NETBSD_ATF_TESTS_SH+=	sizes_test
28NETBSD_ATF_TESTS_SH+=	sockets_test
29NETBSD_ATF_TESTS_SH+=	statvfs_test
30NETBSD_ATF_TESTS_SH+=	symlink_test
31NETBSD_ATF_TESTS_SH+=	times_test
32NETBSD_ATF_TESTS_SH+=	truncate_test
33NETBSD_ATF_TESTS_SH+=	vnd_test
34NETBSD_ATF_TESTS_SH+=	vnode_leak_test
35
36${PACKAGE}FILES+=	h_funcs.subr
37${PACKAGE}FILESDIR=	${TESTSDIR}
38
39PROGS+=			h_tools
40BINDIR.h_tools=		${TESTSDIR}
41
42ATF_TESTS_SH_SED_mknod_test=		\
43					-e 's,mknod pipe p,mkfifo pipe,g' \
44					-e 's,mknod dir/pipe p,mkfifo dir/pipe,g'
45
46ATF_TESTS_SH_SED_mount_test=		\
47					-e 's,-o -g,-o gid=,g' \
48					-e 's,-o -m,-o mode=,g' \
49					-e 's,-o -s,-o size=,g' \
50					-e 's,-o -u,-o uid=,g' \
51					-e 's,mount_${FILESYSTEM},mount -t ${FILESYSTEM},g'
52ATF_TESTS_SH_SED_readdir_test=		-e 's,mknod fifo p,mkfifo fifo,g'
53ATF_TESTS_SH_SED_sizes_test=		-e 's,-o -s,-o size=,g'
54ATF_TESTS_SH_SED_statvfs_test=		-e 's,-o -s,-o size=,g'
55ATF_TESTS_SH_SED_vnd_test=		\
56					-e 's,vndconfig -u /dev/vnd3,mdconfig -d -u $$md_dev,g' \
57					-e 's,/dev/vnd3,/dev/$$md_dev,g'
58ATF_TESTS_SH_SED_vnode_leak_test=	-e 's,-o -s,-o size=,g'
59
60.include <netbsd-tests.test.mk>
61
62.include <bsd.test.mk>
63