source: rtems-testing/sim-scripts/check_endof @ 7199b76

4.11
Last change on this file since 7199b76 was 885a021, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 16, 2009 at 6:58:37 PM

2009-10-16 Joel Sherrill <joel.sherrill@…>

  • check_endof: Add minimum.
  • qemuppc.in: Add trace conversion.
  • Property mode set to 100755
File size: 911 bytes
Line 
1#! /bin/bash
2#
3#  This script checks for the "END OF" message in all RTEMS tests.
4#  It reports tests which do not appear to have completed successfully
5#
6#  $Id$
7#
8
9if [ -d log ] ; then
10  logdir=log/
11else
12  logdir=
13fi
14
15while :
16do
17  for f in `ls -1 ${logdir}* | grep -v info$`
18  do
19    case $f in
20      # we don't expect an "END OF" from these
21      *ppd*) ;;
22      *fatal*) ;;
23      *minimum*) ;;
24      *stackchk*) ;;
25      # These do not know when they hit the case so run until killed.
26      *spintrcritical06*) ;;
27      *spintrcritical07*) ;;
28      *spintrcritical09*) ;;
29      *spintrcritical13*) ;;
30      *spintrcritical14*) ;;
31      *)
32        grep "END OF" $f >/dev/null
33        if [ $? -ne 0 ] ; then
34          echo "WARNING - $f did not appear to complete execution"
35          someFails=yes
36        fi
37        ;;
38    esac
39  done
40
41  if [ X${1} = X ] ; then
42    break
43  fi
44  sleep $1
45  echo
46done
47exit 0
Note: See TracBrowser for help on using the repository browser.