Testing: Consistent naming of temporary files

This commit is contained in:
Shahram Najm 2023-03-18 16:00:11 +00:00
parent 8ce6f20c14
commit 411b332592
3 changed files with 9 additions and 6 deletions

View File

@ -10,6 +10,9 @@
. ./include.ctest.sh
label="bufr_count_test"
temp=temp.$label.truncated.bufr
# Enter data dir
cd ${data_dir}/bufr
input=syno_multi.bufr
@ -23,7 +26,6 @@ count=`${tools_dir}/codes_count $input`
# Files with invalid (unreadable) messages
# -----------------------------------------
temp=$input.truncated
# BUFR file size = 660 bytes. Write out only the first 640 bytes
# thereby creating an unreadable final message
head -c 640 $input > $temp
@ -39,5 +41,5 @@ set -e
vcount=`${tools_dir}/bufr_count -f $temp`
[ "$vcount" = "2" ]
# Clean up
rm -f $temp

View File

@ -9,8 +9,9 @@
#
. ./include.ctest.sh
set -u
temp=temp.grib_iterator.grib
label="grib_iterator_test"
temp=temp.$label.txt
files="reduced_latlon_surface.grib1 \
reduced_gaussian_pressure_level.grib1 \
@ -37,7 +38,6 @@ ${tools_dir}/grib_get_data -L%12.6f%11.5f ${data_dir}/regular_latlon_surface.gri
${tools_dir}/grib_get_data -p shortName,level ${data_dir}/regular_latlon_surface.grib2 > $temp
grep -q "Latitude Longitude Value shortName level" $temp
# Run on a spectral field - should just print out its values
${tools_dir}/grib_get_data "$samp_dir/sh_ml_grib2.tmpl"

View File

@ -10,7 +10,8 @@
. ./include.ctest.sh
temp=output.grib_local_NCEP.grib
label="grib_local_NCEP_test"
temp=temp.$label.grib
sample=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
${tools_dir}/grib_set -s centre=kwbc,discipline=3,parameterCategory=192,parameterNumber=35 $sample $temp