Testing: Increase coverage

This commit is contained in:
shahramn 2024-08-26 11:41:13 +01:00
parent 0cf898b592
commit c6cea152d1
2 changed files with 9 additions and 10 deletions

View File

@ -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 ]

View File

@ -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