Testing: Creation script

This commit is contained in:
Shahram Najm 2023-07-26 10:41:01 +00:00
parent 210e5c94ed
commit 1bc505bc95
1 changed files with 8 additions and 4 deletions

View File

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