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