#! /bin/sh
# Simple script to run test files
#

echo ----------------
echo "Test t1:"
echo
sed 2q <t1.star
star -q t1 t1 t1

echo ----------------
echo "Test t2:"
echo
sed 2q <t2.star
star -q t2 t2 t2

echo ----------------
echo "Test t3:"
echo
sed 2q <t3.star
star -q t3 t3 t3

echo ----------------
echo "Test t4:"
echo
sed 2q <t4.star
star -q t4 t4 t4

echo ----------------
echo "Test t5:"
echo
sed 2q <t5.star
star -q t5 t5 t5

echo ----------------
echo "Test t6:"
echo
sed 2q <t6.star
star -q t6 t6 t6

echo ----------------
echo "Test t7:"
echo
sed 2q <t7.star
star -q t7 t7 t7

echo ----------------
echo "Test t8:"
echo
echo "This test should result in 1 error"
echo
sed 2q <t8.star
star -q t8 t8 t8

echo ----------------
echo  "Test t9:"
echo
sed 2q <t9.star
star -q t9 t9 hp48 t9

echo ----------------
echo  "Test t10:"
echo
echo  "This test should result in 3 errors"
echo
sed 2q <t10.star
star -q t10 t10 hp48 t10

echo ----------------
echo  "Test t11:"
echo
echo  "This test should result in 1 error"
echo
sed 2q <t11.star
star -q t11 t11 t11

echo ----------------
echo  "Test t12:"
echo
sed 2q <t12.star
star -q t12 t12 t12

echo ----------------
echo  "Test t13:"
echo
sed 2q <t13.star
star -q t13 t13 t13

echo ----------------
echo  "Test t14:"
echo
echo  "This test should result in 5 errors"
echo
sed 2q <t14.star
star -q t14 t14 t14

echo ----------------
echo  "Test t15:"
echo
echo  "This test should result in 12 errors"
echo
sed 2q <t15.star
star -q t15 t15 t15

echo ----------------
echo  "Test t16:"
echo
sed 2q <t16.star
star -q t16 t16 t16

echo ----------------
echo  "Test t17:"
echo
echo  "This test should result in 5 errors"
echo
sed 2q <t17.star
star -q t17 t17 t17

echo ----------------
echo  "Test t18:"
echo
sed 2q <t18.star
star -q t18 t18 t18

echo ----------------
echo  "Test t19:"
echo
echo  "This test should result in 3 errors"
echo
sed 2q <t19.star
star -q t19 t19 t19

echo ----------------
echo  "Test t20:"
echo
sed 2q <t20.star
star -q t20 t20 t20

echo ----------------
echo  "Test t21:"
echo
sed 2q <t21.star
star -q t21 t21 t21

echo ----------------
echo  "Test t23:"
echo
sed 2q <t23.star
star -q t23 t23 t23

echo ----------------
echo  "Test t24:"
echo
sed 2q <t24.star
star -q t24 t24 hp48 t24

echo ----------------
echo  "Test t25:"
echo
echo  "This test should result in 2 errors if not using GNU C"
echo
sed 2q <t25.star
star -q t25 t25 t25

echo ----------------
echo  "Test t26:"
echo
sed 2q <t26.star
star -q t26 t26 hp48 t26

echo ----------------
echo  "Test t28:"
echo
sed 2q <t28.star
star -q t28 t28 t28

echo ----------------
echo  "Test t29:"
echo
sed 2q <t29.star
star -q t29 t29 t29

echo ----------------
echo  "Test t30:"
echo
sed 2q <t30.star
star -q t30 t30 t30

echo ----------------
echo  "Test t31:"
echo
sed 2q <t31.star
star -q t31 t31 t31

echo ----------------
echo  "Test t32:"
echo
sed 2q <t32.star
star -q t32 t32 t32

echo ----------------
echo  "Test t33:"
echo
echo  "This test should result in 1 error"
echo
sed 2q <t33.star
star -q t33 t33 t33

echo ----------------
echo  "Test t34:"
echo
sed 2q <t34.star
star -q t34 t34 t34

echo ----------------
echo  "Test t35:"
echo
sed 2q <t35.star
star -q t35 t35 hp48 t35

echo ----------------
echo  "Test t36:"
echo
sed 2q <t36.star
star -q t36 t36 hp48 t36

echo ----------------
echo  "Test t37:"
echo
echo  "This test should result in 1 error"
echo
sed 2q <t37.star
star -q t37 t37 t37

echo ----------------
echo  "Test t38:"
echo
echo  "This test should result in 4 errors if not GNU C"
echo
sed 2q <t38.star
star -q t38 t38 t38

echo ----------------
echo  "Test t48:"
echo
echo  "This test should result in 1 error if not GNU C"
echo
sed 2q <t48.star
star -q t48 t48 hp48 t48

echo
echo ----------------
echo Tests completed
echo
echo Cleaning up...
echo

rm -f t1 t1.list t2 t2.list t3 t3.list t4 t4.list t5 t5.list t6 t6.list 
rm -f t7 t7.list t8 t8.list t9 t9.list t10 t10.list t11 t11.list t12
rm -f t12.list t13 t13.list t14 t14.list t15 t15.list t16 t16.list t17
rm -f t18 t18.list t19 t19.list t20 t20.list t21 t21.list t23 t23.list t24
rm -f t24.list t25 t25.list t26 t26.list t28 t28.list t29 t29.list t30 
rm -f t30.list t31 t31.list t32 t32.list t33 t33.list t34 t34.list t35 
rm -f t35.list t36 t36.list t37 t37.list t38 t38.list t48 t48.list t17.list
