forked from Laar/OpenGLRawgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestrun.sh
More file actions
executable file
·32 lines (27 loc) · 842 Bytes
/
testrun.sh
File metadata and controls
executable file
·32 lines (27 loc) · 842 Bytes
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/bash
REFERENCEDIR="referenceoutput"
TESTDIR="testoutput"
if [ ! -d "$REFERENCEDIR" ] ;
then
echo "-------------------------"
echo "-- Unpacking reference --"
echo "-------------------------"
tar -z -xf "$REFERENCEDIR.tar.gz"
fi
if [ -d "$TESTDIR" ]
then
rm -r "$TESTDIR"
fi
mkdir "$TESTDIR"
echo "---------------------------"
echo "-- Generating new output --"
echo "---------------------------"
time ./OpenGLRawgen --no-vendorf=input/novendor -o "$TESTDIR/normal/" -c --groups -d input --warning-file=input/warningfile +RTS -sstderr &&
# ./OpenGLRawgen --no-vendorf=input/novendor -o "$TESTDIR/stripped/" -c -s -d input --warning-file=input/warningfile
if [[ $? == 0 ]] ;
then
echo "---------------"
echo "-- Comparing --"
echo "---------------"
exec diff -r "$TESTDIR" "$REFERENCEDIR"
fi