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 | test -x "$testdir"/../src/cavern || testdir=. |
|---|
| 12 | |
|---|
| 13 | : ${DIFFPOS="$testdir"/../src/diffpos} |
|---|
| 14 | |
|---|
| 15 | SURVEXHOME="$srcdir"/../lib |
|---|
| 16 | export SURVEXHOME |
|---|
| 17 | |
|---|
| 18 | : ${TESTS=${*-"delatend addatend"}} |
|---|
| 19 | |
|---|
| 20 | for file in $TESTS ; do |
|---|
| 21 | echo $file |
|---|
| 22 | rm -f diffpos.tmp |
|---|
| 23 | $DIFFPOS $srcdir/${file}a.pos $srcdir/${file}b.pos > diffpos.tmp |
|---|
| 24 | if test -n "$VERBOSE" ; then |
|---|
| 25 | cat diffpos.tmp |
|---|
| 26 | cmp diffpos.tmp $srcdir/${file}.out || exit 1 |
|---|
| 27 | else |
|---|
| 28 | cmp diffpos.tmp $srcdir/${file}.out > /dev/null || exit 1 |
|---|
| 29 | fi |
|---|
| 30 | rm -f diffpos.tmp |
|---|
| 31 | done |
|---|
| 32 | |
|---|
| 33 | for args in '' '--survey survey' '--survey survey.xyzzy' '--survey xyzzy' ; do |
|---|
| 34 | echo "diffpos $args" |
|---|
| 35 | rm -f diffpos.tmp |
|---|
| 36 | $DIFFPOS $args $srcdir/v0.3d $srcdir/v0.3d > diffpos.tmp |
|---|
| 37 | if test -n "$VERBOSE" ; then |
|---|
| 38 | cat diffpos.tmp |
|---|
| 39 | fi |
|---|
| 40 | cmp diffpos.tmp /dev/null > /dev/null || exit 1 |
|---|
| 41 | rm -f diffpos.tmp |
|---|
| 42 | done |
|---|
| 43 | |
|---|
| 44 | exit 0 |
|---|
Note: See
TracBrowser
for help on using the repository browser.