home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
- set time=2
- if ($#argv < 1) then
- echo "Usage: existfs name"
- exit 1
- endif
- echo "tests on $1"
- /etc/dumpfs $1 | head -14 | tail -11
- mkdir $1/fststs
- if (! -e bin) then
- mkdir bin
- cc -o bin/write_4096 write_4096.c
- cc -o bin/write_8192 write_8192.c
- cc -o bin/rewrite_8192 rewrite_8192.c
- cc -o bin/read_8192 read_8192.c
- endif
- cp bin/write_4096 bin/write_8192 bin/rewrite_8192 bin/read_8192 $1/fststs
- cd $1/fststs
- echo "write_4096"
- rm -f tst2
- ./write_4096 tst2
- rm -f tst2
- ./write_4096 tst2
- rm -f tst2
- ./write_4096 tst2
- echo "write_8192"
- rm -f tst2
- ./write_8192 tst2
- rm -f tst2
- ./write_8192 tst2
- rm -f tst2
- ./write_8192 tst2
- echo "rewrite_8192"
- ./rewrite_8192 tst2
- ./rewrite_8192 tst2
- ./rewrite_8192 tst2
- echo "read_8192"
- ./read_8192 tst2
- ./read_8192 tst2
- ./read_8192 tst2
- echo "done"
-