4 # This is the UNIX version of the one-button ACE tests.
5 # Contributed by Michael Rueger <m_rueger@SYSCOMP.DE>
6 # mrm@cisco.com - Change to for loop script could be more generic if we put
7 # this in the bin dir and fed it a file to read from
12 # these patterns should not be included in log file
13 ERROR_MSGS
="assertion failed|not supported|No such file or directory|Invalid argument|timeout|Bad file number"
15 # these patterns must be included in log file
16 SUCCESS_MSGS
="starting|Ending"
26 if [ $status -ne 0 ]; then
27 echo \"$1\" FAILED with
exit status
$status!!!!
31 echo \"$1\" dumped core
!!!!
34 for i
in $SUCCESS_MSGS; do
35 grep $i log
/$1.log
>/dev
/null
37 echo Error
in log
file no line with
$i
41 for i
in $ERROR_MSGS; do
46 echo "Starting tests..."
47 FILES
=`ls *_Test 2>/dev/null`
49 if [ -z $FILES ]; then
50 echo "ERROR: no test programs generated matching pattern *_Test."
51 echo "ERROR: Try compiling the test programs first."
60 echo "Tests complete..."