source: git/tests/diffpos.tst @ c4456f5

RELEASE/1.0RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereowalls-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
RevLine 
[fbc3a20]1#!/bin/sh
[6b8ff5b]2
[d4d8efe]3testdir=`echo $0 | sed 's!/[^/]*$!!' || echo '.'`
4
[6b8ff5b]5# allow us to run tests standalone more easily
[d4d8efe]6: ${srcdir="$testdir"}
[647407d]7
[5476de6]8# force VERBOSE if we're run on a subset of tests
9test -n "$*" && VERBOSE=1
10
[87681b8]11test -x "$testdir"/../src/cavern || testdir=.
12
[d4d8efe]13: ${DIFFPOS="$testdir"/../src/diffpos}
[6b8ff5b]14
[0938f88]15: ${TESTS=${*-"delatend addatend"}}
[1422c39]16
17for file in $TESTS ; do
[fbc3a20]18  echo $file
[87681b8]19  rm -f diffpos.tmp
20  $DIFFPOS $srcdir/${file}a.pos $srcdir/${file}b.pos > diffpos.tmp
[d4d8efe]21  if test -n "$VERBOSE" ; then
[87681b8]22    cat diffpos.tmp
23    cmp diffpos.tmp $srcdir/${file}.out || exit 1
[d4d8efe]24  else
[87681b8]25    cmp diffpos.tmp $srcdir/${file}.out > /dev/null || exit 1
[d4d8efe]26  fi
[87681b8]27  rm -f diffpos.tmp
[fbc3a20]28done
[4d3dfdf]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 
[fbc3a20]41exit 0
Note: See TracBrowser for help on using the repository browser.