RELEASE/1.0RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change
on this file since dc1a546 was
87681b8,
checked in by Olly Betts <olly@…>, 24 years ago
|
automake 1.5 is released, supports per executable CFLAGS and cleans up
better than the CVS version we were using, so "make distcheck" now
passes.
git-svn-id: file:///home/survex-svn/survex/trunk@1478 4b37db11-9a0c-4f06-9ece-9ab7cdaee568
|
-
Property mode set to
100755
|
File size:
712 bytes
|
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 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.