File: rt.sh

package info (click to toggle)
gpsim 0.32.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,640 kB
  • sloc: cpp: 121,258; asm: 54,223; ansic: 13,576; python: 9,708; sh: 4,695; makefile: 1,566; lex: 1,139; yacc: 854; pascal: 511; perl: 93; awk: 44; xml: 41
file content (31 lines) | stat: -rwxr-xr-x 602 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

# Regression Test Script for invoking specific targets in Makefiles

USAGE="Usage: `basename $0` DIRECTORY TARGET"

if [ $# -lt 2 ] ; then
  echo "$USAGE"
  exit 1
fi

# this is the directory where the test will be performed
cd $1

LOGFILE="$2results.log"
touch $LOGFILE

# If gpsim is crashing during the regression tests, then uncomment
# the 'echo' to see which regression test was invoked:
# echo "make $1 $2"

# Run the simulation and save the results
${MAKE:-make} $2 > $LOGFILE


grep "FAILED" $LOGFILE
if [ $? -eq 0 ] ; then
  echo "!!! FAILED $1/make $2"
fi
grep "PASSED" $LOGFILE