#!/bin/csh
set specpath=./specweb99/file_set/dir00000

# Make sure that there aren't any copies
# left around that are running.
pkill userver

echo "Starting server"
./userver >& SERVER-OUT &

# Give the server a chance to start
sleep 2

# Run the set of tests
echo "Starting SpecWeb99 Tests"
./testing/do_test 0 $specpath/class0_0 1
./testing/do_test 0 $specpath/class0_1 2
./testing/do_test 0 $specpath/class0_2 3
./testing/do_test 0 $specpath/class0_3 4
./testing/do_test 0 $specpath/class0_4 5
./testing/do_test 0 $specpath/class0_5 6
./testing/do_test 0 $specpath/class0_6 7
./testing/do_test 0 $specpath/class0_7 8
./testing/do_test 0 $specpath/class0_8 9

./testing/do_test 0 $specpath/class1_0 10
./testing/do_test 0 $specpath/class1_1 11
./testing/do_test 0 $specpath/class1_2 12
./testing/do_test 0 $specpath/class1_3 13
./testing/do_test 0 $specpath/class1_4 14
./testing/do_test 0 $specpath/class1_5 15
./testing/do_test 0 $specpath/class1_6 16
./testing/do_test 0 $specpath/class1_7 17
./testing/do_test 0 $specpath/class1_8 18

./testing/do_test 0 $specpath/class2_0 19
./testing/do_test 0 $specpath/class2_1 20
./testing/do_test 0 $specpath/class2_2 21
./testing/do_test 0 $specpath/class2_3 22
./testing/do_test 0 $specpath/class2_4 23
./testing/do_test 0 $specpath/class2_5 24
./testing/do_test 0 $specpath/class2_6 25
./testing/do_test 0 $specpath/class2_7 26
./testing/do_test 0 $specpath/class2_8 27

./testing/do_test 0 $specpath/class2_0 28
./testing/do_test 0 $specpath/class2_1 29
./testing/do_test 0 $specpath/class2_2 30
./testing/do_test 0 $specpath/class2_3 31
./testing/do_test 0 $specpath/class2_4 32
./testing/do_test 0 $specpath/class2_5 33
./testing/do_test 0 $specpath/class2_6 34
./testing/do_test 0 $specpath/class2_7 35
./testing/do_test 0 $specpath/class2_8 36

echo "Killing server"
pkill userver
sleep 2
