#!/bin/sh # for test in aatest boosttest eatest lttest lvtest pvtest \ rotest svtest svtestu uvtest vectest do if [ -x $SRT_LOCAL/bin/$SRT_SUBDIR/$test ] then echo "" echo "Running $test" if [ -f $SRT_LOCAL/PhysicsVectors/Tests/${test}.input ] then [ -f ${test}.out ] && /bin/rm -f ${test}.out $SRT_LOCAL/bin/$SRT_SUBDIR/$test < $SRT_LOCAL/PhysicsVectors/Tests/${test}.input > ${test}.out 2>&1 grep "???" ${test}.out if [ $? -eq 1 ] then echo " -- Test passed." /bin/rm -f ${test}.out else echo " -- Test failed. See ${test}.out for details" fi else [ -f ${test}.out ] && /bin/rm -f ${test}.out $SRT_LOCAL/bin/$SRT_SUBDIR/$test > ${test}.out 2>&1 grep "???" ${test}.out if [ $? -eq 1 ] then echo " -- Test passed." /bin/rm -f ${test}.out else echo " -- Test failed. See ${test}.out for details" fi fi else echo "" echo "Missing executable for test $test" fi done # exit