source: git/tests/diffpos.tst @ 04ebae2

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 04ebae2 was 5476de6, checked in by Olly Betts <olly@…>, 24 years ago

Added VERBOSE support and set SURVEXHOME since diffpos now needs it.

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

  • Property mode set to 100755
File size: 517 bytes
Line 
1#!/bin/sh
2
3# allow us to run tests standalone more easily
4: ${srcdir=.}
5
6# force VERBOSE if we're run on a subset of tests
7test -n "$*" && VERBOSE=1
8
9: ${DIFFPOS=../src/diffpos}
10
11SURVEXHOME=$srcdir/../lib
12export SURVEXHOME
13
14: ${TESTS=${*-"delatend addatend"}}
15
16for file in $TESTS ; do
17  echo $file
18  rm -f diffpos.tmp
19  $DIFFPOS $srcdir/${file}a.pos $srcdir/${file}b.pos > diffpos.tmp
20  test -n "$VERBOSE" && cat diffpos.tmp
21  cmp diffpos.tmp $srcdir/${file}.out > /dev/null || exit 1
22  rm -f diffpos.tmp
23done
24exit 0
Note: See TracBrowser for help on using the repository browser.