summaryrefslogtreecommitdiffstats
path: root/sim-scripts/check_endof
blob: 4fd13e0d1d8fd19c180014c945868d403685fc88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /usr/bin/eval bash
#
#  This script checks for the "END OF" message in all RTEMS tests.
#  It reports tests which do not appear to have completed successfully
#

if [ -d log ] ; then
  logdir=log/
else
  logdir=
fi

while :
do
  for f in `ls -1 ${logdir}* | grep -v info$`
  do
    case $f in
      # we don't expect an "END OF" from these
      *ppd*) ;;
      *minimum*) ;;
      *)
        grep "^\*\*\* END OF" $f >/dev/null
        if [ $? -ne 0 ] ; then
          echo "WARNING - $f did not appear to complete execution"
          someFails=yes
        fi
        ;;
    esac
  done

  if [ X${1} = X ] ; then
    break
  fi
  sleep $1
  echo
done
exit 0