-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·51 lines (38 loc) · 829 Bytes
/
run.sh
File metadata and controls
executable file
·51 lines (38 loc) · 829 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
usage() {
echo "run.sh <compare> <fuzz>" 1>&2
}
if [ "$#" -ne 2 ] ; then
usage
exit 1
fi
if [ ! -e "$1" ] || [ ! -e "$2" ] ; then
echo "Executeable of compare or fuzz does not exist!" 1>&2
exit 1
fi
set -e
cmpExe="$(cd "$(dirname "$1")"; pwd)/$(basename "$1")"
fzzExe="$(cd "$(dirname "$2")"; pwd)/$(basename "$2")"
set +e
cd "$(dirname "$0")"
echo "Crash-Tests"
echo "==========="
(cd crash; ./run-all.sh "$fzzExe")
if [ "$?" -ne 0 ] ; then
echo "Crash tests failed!" 1>&2
exit 2
else
echo "Passed crash tests."
echo ""
fi
echo "Regression-Tests"
echo "================"
(cd regression; ./run-all.sh "$cmpExe")
if [ "$?" -ne 0 ] ; then
echo "Regression tests failed!" 1>&2
exit 3
else
echo "Passed regression tests."
echo ""
fi
echo "All is well." 1>&2