source: git/tests/diffpos.tst @ 849bfba

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 849bfba was d4d8efe, checked in by Olly Betts <olly@…>, 24 years ago

*.tst: No longer have to be run with cwd = tests directory.

extend.tst: Added VERBOSE support.

git-svn-id: file:///home/survex-svn/survex/trunk@1136 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100755
File size: 729 bytes
Line 
1#!/bin/sh
2
3testdir=`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
9test -n "$*" && VERBOSE=1
10
11: ${DIFFPOS="$testdir"/../src/diffpos}
12
13SURVEXHOME=$srcdir/../lib
14export SURVEXHOME
15
16: ${TESTS=${*-"delatend addatend"}}
17
18for 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
29done
30exit 0
Note: See TracBrowser for help on using the repository browser.