source: git/tests/diffpos.tst @ fe444b8

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

Test programs can now take list of tests to run on the command-line.

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

  • Property mode set to 100755
File size: 364 bytes
Line 
1#!/bin/sh
2
3# allow us to run tests standalone more easily
4: ${srcdir=.}
5
6: ${DIFFPOS=../src/diffpos}
7
8: ${TESTS=$*}
9: ${TESTS="delatend addatend"}
10
11for file in $TESTS ; do
12  echo $file
13  rm -f diffpos.tmp
14  $DIFFPOS $srcdir/${file}a.pos $srcdir/${file}b.pos > diffpos.tmp
15  cmp diffpos.tmp $srcdir/${file}.out > /dev/null || exit 1
16  rm -f diffpos.tmp
17done
18exit 0
Note: See TracBrowser for help on using the repository browser.