RELEASE/1.0RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernlogstereowalls-datawalls-data-hanging-as-warning
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | testdir=`echo $0 | sed 's!/[^/]*$!!' || echo '.'` |
---|
4 | |
---|
5 | # allow us to run tests standalone more easily |
---|
6 | : ${srcdir="$testdir"} |
---|
7 | |
---|
8 | # force VERBOSE if we're run on a subset of tests |
---|
9 | test -n "$*" && VERBOSE=1 |
---|
10 | |
---|
11 | test -x "$testdir"/../src/cavern || testdir=. |
---|
12 | |
---|
13 | : ${DIFFPOS="$testdir"/../src/diffpos} |
---|
14 | : ${TDTOPOS="$testdir"/../src/3dtopos} |
---|
15 | |
---|
16 | : ${TESTS=${*-"pos v0 v0b v1 v2 v3"}} |
---|
17 | |
---|
18 | for file in $TESTS ; do |
---|
19 | echo $file |
---|
20 | if test x"$file" = "xpos" ; then |
---|
21 | file="$file".pos |
---|
22 | else |
---|
23 | file="$file".3d |
---|
24 | fi |
---|
25 | rm -f tmp.pos diffpos.tmp |
---|
26 | $TDTOPOS $srcdir/$file tmp.pos || exit 1 |
---|
27 | $DIFFPOS $srcdir/$file tmp.pos > diffpos.tmp |
---|
28 | if test -n "$VERBOSE" ; then |
---|
29 | cat diffpos.tmp |
---|
30 | fi |
---|
31 | test -s diffpos.tmp && exit 1 |
---|
32 | rm -f tmp.pos diffpos.tmp |
---|
33 | done |
---|
34 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.