File:  [Net/2] / Net2 / tests / fstests / existfs
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:03:56 2018 UTC (8 years, 3 months ago) by root
Branches: MAIN, CSRG
CVS tags: Net2, HEAD
Net/2

#!/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"

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.