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
+14 -2
View File
@@ -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
+2 -2
View File
@@ -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
+8
View File
@@ -0,0 +1,8 @@
#include <stdio.h>
#include <unistd.h>
int main(int argc, char **argv)
{
printf("%u\n", getpagesize());
return 0;
}