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