xref: /freebsd/tests/sys/fs/tmpfs/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1669c2535SEnji CooperPACKAGE=		tests
2669c2535SEnji Cooper
3669c2535SEnji CooperFILESYSTEM?=		${.CURDIR:T}
4669c2535SEnji Cooper
5669c2535SEnji CooperTESTSDIR=		${TESTSBASE}/sys/fs/${FILESYSTEM}
6669c2535SEnji Cooper
7669c2535SEnji CooperTESTSRC=		${SRCTOP}/contrib/netbsd-tests/fs/${FILESYSTEM}
8669c2535SEnji Cooper
9669c2535SEnji Cooper# XXX: uses /dev/MAKEDEV to create pseudo /dev/{null,zero} character devices
10669c2535SEnji Cooper#NETBSD_ATF_TESTS_SH+=	devices_test
11669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	create_test
12669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	read_write_test
13669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	dots_test
14669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	exec_test
15669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	link_test
16669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	mkdir_test
17669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	mknod_test
18669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	mount_test
19669c2535SEnji Cooper# XXX: need to replace `mknod ... p` with something more sensible
20669c2535SEnji Cooper#NETBSD_ATF_TESTS_SH+=	pipes_test
21669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	trail_slash_test
22669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	readdir_test
23669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	remove_test
24669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	rename_test
25669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	rmdir_test
26669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	setattr_test
27669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	sizes_test
28669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	sockets_test
29669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	statvfs_test
30669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	symlink_test
31669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	times_test
32669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	truncate_test
33669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	vnd_test
34669c2535SEnji CooperNETBSD_ATF_TESTS_SH+=	vnode_leak_test
35669c2535SEnji Cooper
36669c2535SEnji Cooper${PACKAGE}FILES+=	h_funcs.subr
37669c2535SEnji Cooper${PACKAGE}FILESDIR=	${TESTSDIR}
38669c2535SEnji Cooper
39669c2535SEnji CooperPROGS+=			h_tools
40669c2535SEnji CooperBINDIR.h_tools=		${TESTSDIR}
41669c2535SEnji Cooper
42183ae521SEnji CooperATF_TESTS_SH_SED_mknod_test=		\
43183ae521SEnji Cooper					-e 's,mknod pipe p,mkfifo pipe,g' \
44183ae521SEnji Cooper					-e 's,mknod dir/pipe p,mkfifo dir/pipe,g'
45183ae521SEnji Cooper
46669c2535SEnji CooperATF_TESTS_SH_SED_mount_test=		\
47669c2535SEnji Cooper					-e 's,-o -g,-o gid=,g' \
48669c2535SEnji Cooper					-e 's,-o -m,-o mode=,g' \
49669c2535SEnji Cooper					-e 's,-o -s,-o size=,g' \
50669c2535SEnji Cooper					-e 's,-o -u,-o uid=,g' \
51669c2535SEnji Cooper					-e 's,mount_${FILESYSTEM},mount -t ${FILESYSTEM},g'
52267f10b1SEnji CooperATF_TESTS_SH_SED_readdir_test=		-e 's,mknod fifo p,mkfifo fifo,g'
53669c2535SEnji CooperATF_TESTS_SH_SED_sizes_test=		-e 's,-o -s,-o size=,g'
54669c2535SEnji CooperATF_TESTS_SH_SED_statvfs_test=		-e 's,-o -s,-o size=,g'
55*99429157SEnji CooperATF_TESTS_SH_SED_vnd_test=		\
56*99429157SEnji Cooper					-e 's,vndconfig -u /dev/vnd3,mdconfig -d -u $$md_dev,g' \
57*99429157SEnji Cooper					-e 's,/dev/vnd3,/dev/$$md_dev,g'
58669c2535SEnji CooperATF_TESTS_SH_SED_vnode_leak_test=	-e 's,-o -s,-o size=,g'
59669c2535SEnji Cooper
60669c2535SEnji Cooper.include <netbsd-tests.test.mk>
61669c2535SEnji Cooper
62669c2535SEnji Cooper.include <bsd.test.mk>
63