mirror of https://github.com/ecmwf/eccodes.git
Testing: use consistent labelling
This commit is contained in:
parent
c1e85cff6d
commit
2c11c7ad9c
|
@ -101,6 +101,7 @@ if( HAVE_BUILD_TOOLS )
|
|||
bufr_ecc-1290
|
||||
bufr_ecc-1304
|
||||
bufr_ecc-1347
|
||||
bufr_ecc-1395
|
||||
bufr_json_samples
|
||||
bufr_ecc-359
|
||||
bufr_ecc-517
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-1187
|
||||
# BUFR: codes_set_missing()
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-1187-test"
|
||||
label="bufr_ecc-1187_test"
|
||||
tempOut=temp.${label}.out
|
||||
tempRules=temp.${label}.filter
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
. ./include.ctest.sh
|
||||
set -u
|
||||
|
||||
label="bufr_ecc-1195-test"
|
||||
label="bufr_ecc-1195_test"
|
||||
temp1=temp.$label.bufr
|
||||
temp2=temp.$label.txt
|
||||
sample_bufr3=$ECCODES_SAMPLES_PATH/BUFR3_local.tmpl
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
. ./include.ctest.sh
|
||||
set -u
|
||||
REDIRECT=/dev/null
|
||||
label="bufr_ecc-1259-test"
|
||||
label="bufr_ecc-1259_test"
|
||||
|
||||
tempBufr=temp.$label.bufr
|
||||
tempFilt=temp.$label.filt
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# It tests decoding a BUFR file which cannot be done unless
|
||||
# we extend the definitions to include extra files
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-1288-test"
|
||||
label="bufr_ecc-1288_test"
|
||||
|
||||
TEMP=${label}.temp
|
||||
LOG=${label}.log
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
. ./include.ctest.sh
|
||||
set -u
|
||||
REDIRECT=/dev/null
|
||||
label="bufr_ecc-1290-test"
|
||||
label="bufr_ecc-1290_test"
|
||||
temp=temp.$label
|
||||
tempRules=temp.${label}.filter
|
||||
tempBufr=temp.${label}.bufr
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
set -u
|
||||
|
||||
REDIRECT=/dev/null
|
||||
label="bufr_ecc-1304-test"
|
||||
label="bufr_ecc-1304_test"
|
||||
|
||||
tempBufr=temp.$label.bufr
|
||||
tempFilt=temp.$label.filt
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
. ./include.ctest.sh
|
||||
set -u
|
||||
REDIRECT=/dev/null
|
||||
label="bufr_ecc-1305-test"
|
||||
label="bufr_ecc-1305_test"
|
||||
temp=temp.$label
|
||||
|
||||
# Check the operator name is printed
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
set -u
|
||||
|
||||
label="bufr_ecc-1347-test"
|
||||
label="bufr_ecc-1347_test"
|
||||
tempBufr=temp.$label.bufr
|
||||
tempFilt=temp.$label.filter
|
||||
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
# (C) Copyright 2005- ECMWF.
|
||||
#
|
||||
# This software is licensed under the terms of the Apache Licence Version 2.0
|
||||
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
|
||||
#
|
||||
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
|
||||
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
|
||||
#
|
||||
|
||||
. ./include.ctest.sh
|
||||
|
||||
REDIRECT=/dev/null
|
||||
label="bufr_ecc-1395_test"
|
||||
temp=temp.$label
|
||||
tempBufr=temp.$label.bufr
|
||||
tempFilt=temp.$label.filt
|
||||
tempOut=temp.$label.out
|
||||
|
||||
sample_bufr4=$ECCODES_SAMPLES_PATH/BUFR4.tmpl
|
||||
|
||||
# Pick a descriptor that does not exist in version 19
|
||||
cat > $tempFilt <<EOF
|
||||
set masterTablesVersionNumber = 19;
|
||||
set unexpandedDescriptors = { 25195 }; # should fail
|
||||
write;
|
||||
EOF
|
||||
|
||||
set +e
|
||||
${tools_dir}/bufr_filter -o $tempBufr $tempFilt $sample_bufr4 # > $tempOut
|
||||
status=$?
|
||||
set -e
|
||||
|
||||
# TODO check status
|
||||
|
||||
|
||||
rm -f $tempFilt $tempBufr $tempOut
|
|
@ -15,7 +15,7 @@
|
|||
# It tests decoding a BUFR file which cannot be done unless
|
||||
# we extend the definitions to include extra files
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-197-test"
|
||||
label="bufr_ecc-197_test"
|
||||
|
||||
input=${data_dir}/bufr/vos308014_v3_26.bufr
|
||||
TEMP=${label}.temp
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# It tests setting a key which starts with a digit
|
||||
# ---------------------------------------------------------
|
||||
cd ${data_dir}/bufr
|
||||
label="bufr_ecc_286_test"
|
||||
label="bufr_ecc-286_test"
|
||||
|
||||
tempRules=temp.${label}.filter
|
||||
tempOut=temp.${label}.out
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# It tests bufr_compare with a relative tolerance
|
||||
# ---------------------------------------------------------
|
||||
cd ${data_dir}/bufr
|
||||
label="bufr_ecc_288_test"
|
||||
label="bufr_ecc-288_test"
|
||||
|
||||
tempRules=temp.${label}.filter
|
||||
tempOut=temp.${label}.out
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-313.
|
||||
# It tests decoding a BUFR file which uses the operator 203YYY.
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-313-test"
|
||||
label="bufr_ecc-313_test"
|
||||
tempRules=temp.${label}.filter
|
||||
tempOut=temp.${label}.txt
|
||||
tempRef=temp.${label}.ref
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-359.
|
||||
# It tests calling 'pack=1' and nothing else!
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc_359_test"
|
||||
label="bufr_ecc-359_test"
|
||||
|
||||
tempOut=temp.${label}.out
|
||||
BufrFile=$ECCODES_SAMPLES_PATH/BUFR4.tmpl
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# BUFR encoding failing when value out of range
|
||||
# ---------------------------------------------------------
|
||||
cd ${data_dir}/bufr
|
||||
label="bufr_ecc_379_test"
|
||||
label="bufr_ecc-379_test"
|
||||
|
||||
tempRules=temp.${label}.filter
|
||||
tempOut=temp.${label}.bufr
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# It tests bufr_compare with a blacklist with rank
|
||||
# ---------------------------------------------------------
|
||||
cd ${data_dir}/bufr
|
||||
label="bufr_ecc_393_test"
|
||||
label="bufr_ecc-393_test"
|
||||
|
||||
tempRules=temp.${label}.filter
|
||||
tempOut=temp.${label}.bufr
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# rather than a single value
|
||||
# ---------------------------------------------------------
|
||||
cd ${data_dir}/bufr
|
||||
label="bufr_ecc_428_test"
|
||||
label="bufr_ecc-428_test"
|
||||
|
||||
tempRules=temp.${label}.filter
|
||||
tempText=temp.${label}.text
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-433.
|
||||
# It tests decoding a BUFR file which uses the operator 206YYY.
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-433-test"
|
||||
label="bufr_ecc-433_test"
|
||||
tempRules=temp.${label}.filter
|
||||
tempOut=temp.${label}.txt
|
||||
tempRef=temp.${label}.ref
|
||||
|
|
|
@ -15,7 +15,7 @@ set -u
|
|||
# This is the test for the JIRA issue ECC-556.
|
||||
# It tests typicalDate for BUFR edition 4
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-556-test"
|
||||
label="bufr_ecc-556_test"
|
||||
|
||||
# In this BUFR message the typicalYear should have been encoded
|
||||
# as 2012 but it is actually 12!
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-616:
|
||||
# Cannot extract subsets when operator 203YYY is present
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-616-test"
|
||||
label="bufr_ecc-616_test"
|
||||
tempRules=temp.${label}.filter
|
||||
tempOut=temp.${label}.txt
|
||||
tempRef=temp.${label}.ref
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# bufr_filter script and paths with spaces
|
||||
# ---------------------------------------------------------
|
||||
cd ${data_dir}/bufr
|
||||
label="bufr_ecc_673_test"
|
||||
label="bufr_ecc-673_test"
|
||||
|
||||
tempBufr=temp.${label}.bufr
|
||||
tempRules=temp.${label}.filter
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-680:
|
||||
# BUFR operator 203YYY: implement encoding
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-680-test"
|
||||
label="bufr_ecc-680_test"
|
||||
|
||||
tempBufr=temp.$label.bufr
|
||||
tempFilt=temp.${label}.filter
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-686.
|
||||
# It tests changing the subtype in the ECMWF local section
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-686-test"
|
||||
label="bufr_ecc-686_test"
|
||||
tempRules=temp.${label}.filter
|
||||
tempBufr=temp.${label}.bufr
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# Decoding NOAA GOES message percent confidence values
|
||||
# which do not have a bitmap.
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-690-test"
|
||||
label="bufr_ecc-690_test"
|
||||
tempRules=temp.${label}.filter
|
||||
tempOut=temp.${label}.txt
|
||||
tempBufr=temp.${label}.bufr
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-750.
|
||||
# Encoding values which exceed the maximum allowed
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-750-test"
|
||||
label="bufr_ecc-750_test"
|
||||
tempRules=temp.${label}.filter
|
||||
tempBufr=temp.${label}.bufr
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-765.
|
||||
# BUFR decoding memory leaks
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-765-test"
|
||||
label="bufr_ecc-765_test"
|
||||
tempLog=temp.${label}.log
|
||||
tempSupp=temp.${label}.supp
|
||||
tempFilt=temp.${label}.filt
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-875
|
||||
# bufr_copy with -g option to copy the GTS header
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-875-test"
|
||||
label="bufr_ecc-875_test"
|
||||
tempOut=temp.${label}.out
|
||||
tempRef=temp.${label}.ref
|
||||
tempBufr=temp.${label}.bufr
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# This is the test for the JIRA issue ECC-887
|
||||
# BUFR: Search by condition does not work for floating point value
|
||||
# ---------------------------------------------------------
|
||||
label="bufr_ecc-887-test"
|
||||
label="bufr_ecc-887_test"
|
||||
tempOut=temp.${label}.out
|
||||
tempRules=temp.${label}.filter
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ fi
|
|||
TEST_TITLE="$1"
|
||||
|
||||
# Check label is unique
|
||||
grep -q "label=\"$TEST_TITLE\"" $TEST_DIR/*.sh
|
||||
grep -i -q "label=\"$TEST_TITLE\"" $TEST_DIR/*.sh
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "ERROR: Test label \"$TEST_TITLE\" seems to already exist!"
|
||||
grep -l "label=\"$TEST_TITLE\"" $TEST_DIR/*.sh # Show results
|
||||
|
@ -36,7 +36,7 @@ cat <<EOF
|
|||
. ./include.ctest.sh
|
||||
set -u
|
||||
REDIRECT=/dev/null
|
||||
label="prod_${TEST_TITLE}-test"
|
||||
label="prod_${TEST_TITLE}_test" # Change prod to bufr or grib etc
|
||||
temp=temp.\$label
|
||||
sample_grib1=\$ECCODES_SAMPLES_PATH/GRIB1.tmpl
|
||||
sample_grib2=\$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
||||
|
|
Loading…
Reference in New Issue