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 44# NOTE: dev_t is represented by 64-bits after r321920 (it was 16-bits 45# previously). 46# 47# The old hardcoded values assume the 16-bit layout for <struct stat>.st_rdev . 48ATF_TESTS_SH_SED_mknod_test= \ 49 -e '/$${st_rdev} -eq 512/s/512/8589934592/g' \ 50 -e '/$${st_rdev} -eq 514/s/514/8589934594/g' \ 51 -e 's,mknod pipe p,mkfifo pipe,g' \ 52 -e 's,mknod dir/pipe p,mkfifo dir/pipe,g' 53 54ATF_TESTS_SH_SED_mount_test= \ 55 -e 's,-o -g,-o gid=,g' \ 56 -e 's,-o -m,-o mode=,g' \ 57 -e 's,-o -s,-o size=,g' \ 58 -e 's,-o -u,-o uid=,g' \ 59 -e 's,mount_${FILESYSTEM},mount -t ${FILESYSTEM},g' 60ATF_TESTS_SH_SED_readdir_test= -e 's,mknod fifo p,mkfifo fifo,g' 61ATF_TESTS_SH_SED_sizes_test= -e 's,-o -s,-o size=,g' 62ATF_TESTS_SH_SED_statvfs_test= -e 's,-o -s,-o size=,g' 63ATF_TESTS_SH_SED_vnd_test= \ 64 -e 's,vndconfig -u /dev/vnd3,mdconfig -d -u $$md_dev,g' \ 65 -e 's,/dev/vnd3,/dev/$$md_dev,g' 66ATF_TESTS_SH_SED_vnode_leak_test= -e 's,-o -s,-o size=,g' 67 68.include <netbsd-tests.test.mk> 69 70.include <bsd.test.mk> 71