From: Nathan Scott Date: Wed, 3 Apr 2002 03:39:30 +0000 (+0000) Subject: make test independent of system pagesize. add in direct IO randholes test. X-Git-Tag: v1.1.0~1137 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2bd2a2b7b3227769b8ce42358be81bada132dd21;p=users%2Fhch%2Fxfstests-dev.git make test independent of system pagesize. add in direct IO randholes test. --- diff --git a/008 b/008 index 86ecf4f9b..0b71cb399 100755 --- a/008 +++ b/008 @@ -90,9 +90,18 @@ _do_test() rm -f $here/$seq.out.full -_do_test 1 50 "-l 5000000 -c 50 -b 4096" -_do_test 2 100 "-l 10000000 -c 100 -b 4096" +pgsize=`$here/src/getpagesize` + +_do_test 1 50 "-l 5000000 -c 50 -b $pgsize" +_do_test 2 100 "-l 10000000 -c 100 -b $pgsize" _do_test 3 100 "-l 10000000 -c 100 -b 512" # test partial pages +# rinse, lather, repeat for direct IO +_do_test 1 50 "-d -l 5000000 -c 50 -b $pgsize" +_do_test 2 100 "-d -l 10000000 -c 100 -b $pgsize" +_do_test 3 100 "-d -l 10000000 -c 100 -b 512" # test partial pages + +# todo: realtime. + # success, all done exit diff --git a/008.out b/008.out index 7bac019c9..5f929a4d3 100644 --- a/008.out +++ b/008.out @@ -1,13 +1,25 @@ QA output created by 008 -randholes.1 : -l 5000000 -c 50 -b 4096 +randholes.1 : -l 5000000 -c 50 -b PGSIZE ------------------------------------------ holes is in range -randholes.2 : -l 10000000 -c 100 -b 4096 +randholes.2 : -l 10000000 -c 100 -b PGSIZE ------------------------------------------ holes is in range randholes.3 : -l 10000000 -c 100 -b 512 ------------------------------------------ holes is in range + +randholes.4 : -d -l 5000000 -c 50 -b PGSIZE +------------------------------------------ +holes is in range + +randholes.5 : -d -l 10000000 -c 100 -b PGSIZE +------------------------------------------ +holes is in range + +randholes.6 : -d -l 10000000 -c 100 -b 512 +------------------------------------------ +holes is in range diff --git a/src/Makefile b/src/Makefile index 38ac4b7d3..a2134138e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -34,8 +34,8 @@ TOPDIR = .. include $(TOPDIR)/include/builddefs TARGETS = alloc acl_get bstat devzero dirstress fault feature \ - fsstress fill fill2 holes ioctl loggen lstat64 nametest permname \ - randholes runas truncfile usemem + fsstress fill fill2 getpagesize holes ioctl loggen lstat64 \ + nametest permname randholes runas truncfile usemem ifeq ($(HAVE_DB), true) TARGETS += dbtest endif diff --git a/src/getpagesize.c b/src/getpagesize.c new file mode 100644 index 000000000..2830fa245 --- /dev/null +++ b/src/getpagesize.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char **argv) +{ + printf("%u\n", getpagesize()); + return 0; +}