mirror of https://github.com/ecmwf/eccodes.git
Testing: headers_only mode in GRIB2
This commit is contained in:
parent
0c3d0c0bfa
commit
ef68198246
|
@ -18,11 +18,10 @@ rm -f $tempText $tempLog
|
||||||
sample_g1="$ECCODES_SAMPLES_PATH/GRIB1.tmpl"
|
sample_g1="$ECCODES_SAMPLES_PATH/GRIB1.tmpl"
|
||||||
sample_g2="$ECCODES_SAMPLES_PATH/GRIB2.tmpl"
|
sample_g2="$ECCODES_SAMPLES_PATH/GRIB2.tmpl"
|
||||||
|
|
||||||
# files="$sample_g1 $sample_g2" #TODO: include GRIB2 as well
|
files="$sample_g1 $sample_g2"
|
||||||
files="$sample_g1" #TODO: include GRIB2 as well
|
for f in $files; do
|
||||||
for file in $files; do
|
|
||||||
# Since we're not including the data section, the packingType key must not appear
|
# Since we're not including the data section, the packingType key must not appear
|
||||||
${tools_dir}/grib_ls -j -M -x $file > $tempLog
|
${tools_dir}/grib_ls -j -M -x $f > $tempLog
|
||||||
set +e
|
set +e
|
||||||
grep -q "packingType" $tempLog
|
grep -q "packingType" $tempLog
|
||||||
status=$?
|
status=$?
|
||||||
|
|
Loading…
Reference in New Issue