Testing: cleanup

This commit is contained in:
Shahram Najm 2023-04-29 12:44:25 +01:00
parent 3ce066b60a
commit 285cec091d
5 changed files with 19 additions and 38 deletions

View File

@ -16,24 +16,16 @@ label="bufr_get_string_array_test_f"
fTmp=${label}.tmp.txt
rm -f $fTmp
#-----------------------------------------------------
#----------------------------------------------------
# Test get string array from a BUFR
#----------------------------------------------------
fRef=${data_dir}/bufr/get_string_array.ref
REDIRECT=/dev/null
# Write the values into a file and compare with reference
${examples_dir}/eccodes_f_bufr_get_string_array > $fTmp
#We compare output to the reference by ignoring the whitespaces
# Compare output to the reference by ignoring the whitespaces
diff -w $fRef $fTmp
#cat $fRes
# Clean up
rm -f ${fTmp}

View File

@ -10,7 +10,6 @@
. ./include.ctest.sh
# Define a common label for all the tmp files
label="bufr_read_scatterometer_f"
@ -19,11 +18,8 @@ fTmp=${label}.tmp.txt
rm -f $fTmp
# We check "asca_139.bufr". The path is hardcoded in the example
REDIRECT=/dev/null
# Write the key values into a file
${examples_dir}/eccodes_f_bufr_read_scatterometer 2> $REDIRECT > $fTmp
${examples_dir}/eccodes_f_bufr_read_scatterometer > $fTmp
# Check the results
REFERENCE_FILE=bufr_read_scatterometer_f.ref

View File

@ -10,22 +10,15 @@
. ./include.ctest.sh
# Define a common label for all the tmp files
label="bufr_read_temp_f"
#Define tmp file
fTmp=${label}.tmp.txt
rm -f $fTmp
# The path to the BUFR file is hardcoded in the example
REDIRECT=/dev/null
# Run the example
${examples_dir}/eccodes_f_bufr_read_temp > $fTmp
#TODO: check the results
grep -q 'timePeriod pressure geopotentialHeight' $fTmp
# Clean up
rm -f $fTmp