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_mount_test= \ 45 -e 's,-o -g,-o gid=,g' \ 46 -e 's,-o -m,-o mode=,g' \ 47 -e 's,-o -s,-o size=,g' \ 48 -e 's,-o -u,-o uid=,g' \ 49 -e 's,mount_${FILESYSTEM},mount -t ${FILESYSTEM},g' 50ATF_TESTS_SH_SED_sizes_test= -e 's,-o -s,-o size=,g' 51ATF_TESTS_SH_SED_statvfs_test= -e 's,-o -s,-o size=,g' 52ATF_TESTS_SH_SED_vnode_leak_test= -e 's,-o -s,-o size=,g' 53 54.include <netbsd-tests.test.mk> 55 56.include <bsd.test.mk> 57