update
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 25 Apr 2022 16:26:05 +0000 (12:26 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 25 Apr 2022 16:26:05 +0000 (12:26 -0400)
tests/Makefile [new file with mode: 0644]
tests/w-racer.sh

diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644 (file)
index 0000000..30ad077
--- /dev/null
@@ -0,0 +1,139 @@
+CC=gcc
+CFLAGS=-g -Wall -Werror -m32
+LEN=60
+OPT=-w
+
+all: wtests2
+
+utests: cleanup
+       sh j-reg.sh
+       sh j-racer.sh -u ext3 60
+
+w6:
+       sh w6.sh
+
+u33_racer_rename:
+       ./j-racer.sh -u ext3 100
+       ./j-racer.sh -u ext3 200
+       ./j-racer.sh -u ext3 300
+       ./j-racer.sh -u ext3 400
+
+u33_racer_rename_base:
+       ./j-racer.sh tmpfs 100
+       ./j-racer.sh tmpfs 200
+       ./j-racer.sh tmpfs 300
+       ./j-racer.sh tmpfs 400
+       ./j-racer.sh ext3 100
+       ./j-racer.sh ext3 200
+       ./j-racer.sh ext3 300
+       ./j-racer.sh ext3 400
+
+wtest_bisect:
+       ./w-racer.sh -w ext3 30
+
+otests:
+       ./o3 ext2 300
+       ./o3 ext3 300
+       ./o3 reiserfs 300
+       ./o3 tmpfs 300
+       ./o3 xfs 300
+
+install:
+       make -C $(HOME)/U/LINUS modules_install install
+       sync
+       sleep 1
+       sync
+       reboot
+
+wtests: progs
+       sh w-racer.sh $(OPT) ext3 30
+       sleep 5
+       sh w-racer.sh $(OPT) nfs 30
+       sleep 5
+       sh w-racer.sh $(OPT) tmpfs 30
+       sleep 5
+       sh j-ltp.sh -w ext3
+       sleep 5
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 60
+       sh w-racer.sh $(OPT) nfs 60
+
+wtest2:
+       sh w-racer.sh $(OPT) ext2 30
+       sh w-racer.sh $(OPT) xfs 30
+       sh w-racer.sh $(OPT) reiserfs 30
+       sh w-racer.sh $(OPT) tmpfs 30
+
+oldall: progs tests # ntests longntests
+
+wtests2:
+       sh w-racer.sh -w ext3 30
+#      sh w-racer.sh ext3 30
+
+progs: cmpd cmpi keepopen mapper3 open-ro-close open-rw-close \
+       open-unlink open-write opendir re-read mapper-re-read chmodl \
+       seek-dir aoptest creat-unlink mk-core append
+
+cleanup:
+       -exportfs -ua
+       -umount /tmp /n/scratch /n/lower
+       -rmmod wrapfs
+
+ntests:
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+       sh w-racer.sh $(OPT) nfs 30
+
+longntests: cleanup
+       echo
+       sh w-racer.sh $(OPT) nfs 60
+       sh w-racer.sh $(OPT) nfs 60
+       sh w-racer.sh $(OPT) nfs 60
+       sh w-racer.sh $(OPT) nfs 60
+       echo
+       sh w-racer.sh $(OPT) nfs 120
+       sh w-racer.sh $(OPT) nfs 120
+       sh w-racer.sh $(OPT) nfs 120
+       sh w-racer.sh $(OPT) nfs 120
+       sh w-racer.sh $(OPT) nfs 300
+       sh w-racer.sh $(OPT) nfs 300
+       sh w-racer.sh $(OPT) nfs 300
+       sh w-racer.sh $(OPT) nfs 300
+
+tests: cleanup
+       sh w-racer.sh $(OPT) tmpfs 60
+       sh w-racer.sh $(OPT) ext3 60
+       sh w-racer.sh $(OPT) ext2 60
+       sh w-racer.sh $(OPT) ext4 60
+       sh w-racer.sh $(OPT) reiserfs 60
+       sh w-racer.sh $(OPT) xfs 60
+       sh w-racer.sh $(OPT) nfs 60
+
+lowertests: cleanup
+       sh w-racer.sh tmpfs 60
+       sh w-racer.sh ext3 60
+       sh w-racer.sh ext2 60
+       sh w-racer.sh ext4 60
+       sh w-racer.sh reiserfs 60
+       sh w-racer.sh xfs 60
+       sh w-racer.sh nfs 60
+
+alltests: cleanup
+       sh w-racer.sh $(OPT) tmpfs $(LEN)
+       sh w-racer.sh $(OPT) ext3 $(LEN)
+       sh w-racer.sh $(OPT) ext2 $(LEN)
+       sh w-racer.sh $(OPT) xfs $(LEN)
+       sh w-racer.sh $(OPT) reiserfs $(LEN)
+       sh w-racer.sh $(OPT) nfs $(LEN)
+
+old:
+       perl parsit.pl x
+
index 59827d79de4d6f0dab4a91d5901d85b459bc3586..63ec9a2c819ce4dae0481ef077867f466b16b89f 100755 (executable)
@@ -67,7 +67,7 @@ case "$1" in
        ;;
 esac
 
-runcmd2 ./j-install.sh
+runcmd2 ./w-install.sh
 #runcmd2 ./j-syslog.sh
 
 # cleanup if needed
@@ -114,7 +114,7 @@ esac
 runcmd find /tmp -ls
 runcmd df /tmp
 runcmd df -i /tmp
-runcmd ../racer/racer2.sh /tmp/r ${2:-60}
+runcmd ../racer/fsl-racer.sh /tmp/r ${2:-60}
 runcmd sync
 if test $? != 0 ; then
     ps -ef | grep bash