make test independent of system pagesize. add in direct IO randholes test.

This commit is contained in:
Nathan Scott
2002-04-03 03:39:30 +00:00
parent dbf1e1bc45
commit 2bd2a2b7b3
4 changed files with 35 additions and 6 deletions
+11 -2
View File
@@ -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