source: git/tests/diffpos.tst @ c4456f5

RELEASE/1.0RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since c4456f5 was fa42426, checked in by Olly Betts <olly@…>, 22 years ago

aven: cleaned up plotting of crosses, special points, and highlighted points;
measuring line now snaps to the nearest point to the mouse pointer, not just
*a* point near the mouse pointer.

printps/printhpgl: Fixed --skip-blanks which would incorrectly skip non-blank
pages on rare occasions.

cavern: implemented "*units clino percent".

cavern: added error if the *units factor is zero (e.g. "*units tape 0 feet").

cavern: removed the ill-thought-out and never implemented LENGTHOUTPUT
and ANGLEOUTPUT quantities.

(Unix version): uninstalled binaries now use the path they are run with to
find support files, which means SURVEXHOME is no longer required, and has
been removed.

Rearranged messages a little to remove a few cavern messages in the middle
of the aven ones.

Removed a few needless inclusions of header files, and unused #define-s.

compile_error_skip() added to do compile_error() then skipline().

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

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