RELEASE/1.0RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
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 | : ${DIFFPOS="$testdir"/../src/diffpos} |
---|
12 | |
---|
13 | SURVEXHOME=$srcdir/../lib |
---|
14 | export SURVEXHOME |
---|
15 | |
---|
16 | : ${TESTS=${*-"delatend addatend"}} |
---|
17 | |
---|
18 | for file in $TESTS ; do |
---|
19 | echo $file |
---|
20 | rm -f "$testdir"/diffpos.tmp |
---|
21 | $DIFFPOS $srcdir/${file}a.pos $srcdir/${file}b.pos > "$testdir"/diffpos.tmp |
---|
22 | if test -n "$VERBOSE" ; then |
---|
23 | cat "$testdir"/diffpos.tmp |
---|
24 | cmp "$testdir"/diffpos.tmp $srcdir/${file}.out || exit 1 |
---|
25 | else |
---|
26 | cmp "$testdir"/diffpos.tmp $srcdir/${file}.out > /dev/null || exit 1 |
---|
27 | fi |
---|
28 | rm -f "$testdir"/diffpos.tmp |
---|
29 | done |
---|
30 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.