mirror of https://github.com/ecmwf/eccodes.git
Testing: Creation script
This commit is contained in:
parent
210e5c94ed
commit
1bc505bc95
|
@ -13,6 +13,7 @@ if [ $# -ne 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TEST_TITLE="$1"
|
TEST_TITLE="$1"
|
||||||
|
TEST_TITLE=$(echo $TEST_TITLE | tr '[A-Z]' '[a-z]')
|
||||||
|
|
||||||
# Check label is unique
|
# Check label is unique
|
||||||
grep -i -q "label=\"$TEST_TITLE\"" $TEST_DIR/*.sh
|
grep -i -q "label=\"$TEST_TITLE\"" $TEST_DIR/*.sh
|
||||||
|
@ -40,15 +41,18 @@ REDIRECT=/dev/null
|
||||||
label="prod_${TEST_TITLE}_test" # Change prod to bufr or grib etc
|
label="prod_${TEST_TITLE}_test" # Change prod to bufr or grib etc
|
||||||
tempGrib=temp.\$label.grib
|
tempGrib=temp.\$label.grib
|
||||||
tempBufr=temp.\$label.bufr
|
tempBufr=temp.\$label.bufr
|
||||||
tempText=temp.\$label.txt
|
tempFilt=temp.\$label.filt
|
||||||
|
tempLog=temp.\$label.log
|
||||||
|
tempRef=temp.\$label.ref
|
||||||
|
|
||||||
sample_grib1=\$ECCODES_SAMPLES_PATH/GRIB1.tmpl
|
|
||||||
sample_grib2=\$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
sample_grib2=\$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
||||||
sample_bufr3=\$ECCODES_SAMPLES_PATH/BUFR3.tmpl
|
|
||||||
sample_bufr4=\$ECCODES_SAMPLES_PATH/BUFR4.tmpl
|
sample_bufr4=\$ECCODES_SAMPLES_PATH/BUFR4.tmpl
|
||||||
|
|
||||||
#...
|
#...
|
||||||
#infile=\${data_dir}/SOME_FILE
|
#infile=\${data_dir}/SOME_FILE
|
||||||
|
#cat >\$tempFilt<<EOF
|
||||||
|
#EOF
|
||||||
|
#\${tools_dir}/grib_filter -o \$tempGrib \$tempFilt \$sample_grib2
|
||||||
#\${tools_dir}/grib_get
|
#\${tools_dir}/grib_get
|
||||||
#\${tools_dir}/grib_set
|
#\${tools_dir}/grib_set
|
||||||
#grib_check_key_equals \$temp k1,k2 "v1 v2"
|
#grib_check_key_equals \$temp k1,k2 "v1 v2"
|
||||||
|
@ -57,7 +61,7 @@ sample_bufr4=\$ECCODES_SAMPLES_PATH/BUFR4.tmpl
|
||||||
#\${tools_dir}/bufr_set
|
#\${tools_dir}/bufr_set
|
||||||
#...
|
#...
|
||||||
|
|
||||||
rm -f \$tempText \$tempGrib \$tempBufr
|
rm -f \$tempGrib \$tempBufr \$tempFilt \$tempLog \$tempRef
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo >&2
|
echo >&2
|
||||||
|
|
Loading…
Reference in New Issue