source: git/tests/3dtopos.tst @ c4456f5

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

Fix reading of ASCII 3d files with CR+LF end of lines.

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

  • Property mode set to 100755
File size: 746 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: ${TDTOPOS="$testdir"/../src/3dtopos}
15
16: ${TESTS=${*-"pos v0 v0b v1 v2 v3"}}
17
18for file in $TESTS ; do
19  echo $file
20  if test x"$file" = "xpos" ; then
21    file="$file".pos
22  else
23    file="$file".3d
24  fi
25  rm -f tmp.pos diffpos.tmp
26  $TDTOPOS $srcdir/$file tmp.pos || exit 1
27  $DIFFPOS $srcdir/$file tmp.pos > diffpos.tmp
28  if test -n "$VERBOSE" ; then
29    cat diffpos.tmp
30  fi
31  test -s diffpos.tmp && exit 1
32  rm -f tmp.pos diffpos.tmp
33done
34exit 0
Note: See TracBrowser for help on using the repository browser.