diff --git a/tests/gts_compare.sh b/tests/gts_compare.sh index 678d8b571..14592d6ea 100755 --- a/tests/gts_compare.sh +++ b/tests/gts_compare.sh @@ -31,6 +31,8 @@ echo "Test: comparing the same files" >> $fLog echo "file: $gts_file" >> $fLog ${tools_dir}/gts_compare $gts_file $gts_file +${tools_dir}/gts_compare -v -c totalLength $gts_file $gts_file > /dev/null + #---------------------------------------------------- # Test: comparing with skip #---------------------------------------------------- @@ -82,13 +84,13 @@ ${tools_dir}/gts_compare -c theMessage $temp1 $temp2 ${tools_dir}/gts_compare -c theMessage -a $temp1 $temp2 set +e -${tools_dir}/gts_compare -c ls:n $temp1 $temp2 +${tools_dir}/gts_compare -c ls:n $temp1 $temp2 > /dev/null status=$? set -e [ $status -eq 1 ] set +e -${tools_dir}/gts_compare -c ls:n -a $temp1 $temp2 +${tools_dir}/gts_compare -c ls:n -a $temp1 $temp2 > /dev/null status=$? set -e [ $status -eq 1 ] diff --git a/tests/read_any.sh b/tests/read_any.sh index f8d1a0ba1..c8972cc03 100755 --- a/tests/read_any.sh +++ b/tests/read_any.sh @@ -13,12 +13,6 @@ infile=${data_dir}/mixed.grib outfile=${data_dir}/read_any.out -#if [ ! -f ${infile} ] -#then -# echo no data to test -# exit 0 -#fi - $EXEC $test_dir/read_any $infile > ${outfile} diff ${outfile} ${data_dir}/read_any.ok @@ -26,10 +20,13 @@ diff ${outfile} ${data_dir}/read_any.ok rm -f ${outfile} count=`${tools_dir}/grib_count ${data_dir}/pad.grib` - if [ $count != 6 ]; then - echo grib_io problem + echo "Error: grib_io problem" exit 1 fi ${tools_dir}/grib_count -v ${data_dir}/pad.grib >/dev/null + +## +$EXEC $test_dir/read_any $ECCODES_SAMPLES_PATH/reduced_gg_pl_32_grib1.tmpl +$EXEC $test_dir/read_any $ECCODES_SAMPLES_PATH/reduced_gg_pl_32_grib2.tmpl