summaryrefslogtreecommitdiff
path: root/Test/rtest
blob: 55386bf008e6c9042d33c31954ff024134e8446e (plain)
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
#!/usr/bin/bash

if [ $# -eq 0 ] ; then
  echo "rtest: Error: Syntax: rtest testDirectory [ additionalTestArguments ... ]"
  exit 1
elif [ ! -d $1 ] ; then
  echo rtest: Error: There is no test directory $1
  exit 1
fi

TESTDIR=$1
echo ----- Running regression test $TESTDIR
cd $TESTDIR

shift
cmd /c .\\runtest.bat -nologo -logPrefix:$TESTDIR "$@" > Output
# perl ../filter.pl Output Output.filtered
# perl ../filter.pl Answer Answer.filtered
# diff -w Answer.filtered Output.filtered > Diffs
if c:/Windows/system32/fc /W Answer Output > /dev/null ; then
  echo Succeeded
else
  echo FAILED
fi
cd ..