aboutsummaryrefslogtreecommitdiff
path: root/nad/testntv2
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/testntv2
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/testntv2')
-rwxr-xr-xnad/testntv230
1 files changed, 29 insertions, 1 deletions
diff --git a/nad/testntv2 b/nad/testntv2
index 307f8141..096f4bbb 100755
--- a/nad/testntv2
+++ b/nad/testntv2
@@ -3,8 +3,31 @@
# Test NTv2 (.gsb) support. Assumes ntv2_0.gsb is installed.
#
#
+EXE=$1
+
+usage()
+{
+ echo "Usage: ${0} <path to 'cs2cs' program>"
+ echo
+ exit 1
+}
+
+if test -z "${EXE}"; then
+ echo "*** ERROR: Missing path to 'cs2cs' 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=ntv2_out
-EXE=../src/cs2cs
+#EXE=../src/cs2cs
#
echo "doing tests into file ${OUT}, please wait"
rm -f ${OUT}
@@ -39,8 +62,13 @@ 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
+