aboutsummaryrefslogtreecommitdiff
path: root/nad/test27
diff options
context:
space:
mode:
authorMateusz Loskot <mateusz@loskot.net>2006-10-13 18:46:27 +0000
committerMateusz Loskot <mateusz@loskot.net>2006-10-13 18:46:27 +0000
commit6e6090e292713b3ae4bd15bc0fa30bb81ad1bd9c (patch)
tree6ad2c8dafc4edae379d3402be01443143ec389a8 /nad/test27
parent854433f066e16a2506ed2aebf4e5c649bc1b002e (diff)
downloadPROJ-6e6090e292713b3ae4bd15bc0fa30bb81ad1bd9c.tar.gz
PROJ-6e6090e292713b3ae4bd15bc0fa30bb81ad1bd9c.zip
Added 'make check' target to run tests.
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1355 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'nad/test27')
-rwxr-xr-xnad/test2727
1 files changed, 25 insertions, 2 deletions
diff --git a/nad/test27 b/nad/test27
index 3774116c..cd25621d 100755
--- a/nad/test27
+++ b/nad/test27
@@ -1,14 +1,35 @@
:
# Script to test most of the SPCS zones.
-#
# This script generated from execution of NMD's program l176, where
# the second pair of numbers are respective easting and northing output.
#
# Proj will vary in the .001ft range with projections using Transverse
# Mercator due to greater precision of meridinal distance function.
#
+EXE=$1
+
+usage()
+{
+ echo "Usage: ${0} <path to 'proj' program>"
+ echo
+ exit 1
+}
+
+if test -z "${EXE}"; then
+ echo "*** ERROR: Missing path to 'proj' program."
+ usage
+else
+ if test ! -x ${EXE}; then
+ echo "*** ERROR: Can not find '${EXE}' program!"
+ exit 1
+ fi
+fi
+
+echo "============================================"
+echo "Running ${0} using ${EXE}:"
+echo "============================================"
+
OUT=proj_out27
-EXE=../src/proj
INIT_FILE=./nad27
#
echo "doing tests into file ${OUT}, please wait"
@@ -816,10 +837,12 @@ if [ $? -ne 0 ] ; then
echo ""
echo "PROBLEMS HAVE OCCURED"
echo "test file ${OUT} saved"
+ echo
exit 100
else
echo "TEST OK"
echo "test file ${OUT} removed"
+ echo
/bin/rm -f ${OUT}
exit 0
fi