From 23bf8bf5977073a91353f992ee0dd608be1d45fe Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 1 Dec 2018 17:57:32 +0100 Subject: Rename test/old/ to test/cli/ to better reflect their nature --- test/cli/testflaky | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100755 test/cli/testflaky (limited to 'test/cli/testflaky') diff --git a/test/cli/testflaky b/test/cli/testflaky new file mode 100755 index 00000000..af56a9cd --- /dev/null +++ b/test/cli/testflaky @@ -0,0 +1,75 @@ +: +# Script to do some testing of flaky transformation that do not depend +# on datum files. +# +# +TEST_CLI_DIR=`dirname $0` +DATA_DIR=`dirname $0`/../../data +EXE=$1 + +usage() +{ + echo "Usage: ${0} " + echo + exit 1 +} + +if test -z "${EXE}"; then + EXE=../../src/cs2cs +fi + +if test ! -x ${EXE}; then + echo "*** ERROR: Can not find '${EXE}' program!" + exit 1 +fi + +echo "============================================" +echo "Running ${0} using ${EXE}:" +echo "============================================" + +OUT=tf_out +#EXE=../src/cs2cs +# +echo "doing tests into file ${OUT}, please wait" +rm -f ${OUT} +# +echo "Test healpix inverse projection on sphere" >> ${OUT} +$EXE +proj=latlong +a=1 +lon_0=0 \ + +to +proj=healpix +a=1 +lon_0=0 -f '%.'5'f' -I\ + -E >>${OUT} <>${OUT} <