mirror of https://github.com/ecmwf/eccodes.git
ECC-1898: Add more tests
This commit is contained in:
parent
34d49445c7
commit
6180c42ef6
|
@ -28,14 +28,11 @@ grep -q '288-288 g2level level = 1000 \[vertical.level\]' $tempOut
|
|||
$tools_dir/grib_dump -p levelist -Da $tempGrib 2> $tempOut
|
||||
grep -q 'levelist: Key/value not found' $tempOut
|
||||
|
||||
set +e
|
||||
$tools_dir/grib_get -p levelist $tempGrib 2> $tempOut
|
||||
set -e
|
||||
grep -q 'levelist (Key/value not found)' $tempOut
|
||||
result=$($tools_dir/grib_get -fp levelist $tempGrib)
|
||||
[ "$result" = "not_found" ]
|
||||
|
||||
set +e
|
||||
$tools_dir/grib_get -p mars.levelist $tempGrib 2> $tempOut
|
||||
set -e
|
||||
grep -q 'mars.levelist (Key/value not found)' $tempOut
|
||||
result=$($tools_dir/grib_get -fp mars.levelist $tempGrib)
|
||||
[ "$result" = "not_found" ]
|
||||
|
||||
# Clean up
|
||||
rm -f $tempGrib $tempOut
|
||||
|
|
|
@ -98,5 +98,16 @@ $grib2_sample $temp1
|
|||
grib_check_key_equals $temp1 'marsExpver,mars.expver' '0078 0078'
|
||||
|
||||
|
||||
# Stream 'dame'
|
||||
${tools_dir}/grib_set -s productionStatusOfProcessedData=10 $grib2_sample $temp1
|
||||
grib_check_key_equals $temp1 'mars.time,mars.step' '1200 0'
|
||||
|
||||
${tools_dir}/grib_set -s \
|
||||
productionStatusOfProcessedData=10,productDefinitionTemplateNumber=8,outerLoopTypeOfTimeIncrement=1,outerLoopLengthOfTimeRange=21 \
|
||||
$grib2_sample $temp1
|
||||
grib_check_key_equals $temp1 'mars.stream' 'dame'
|
||||
result=$(${tools_dir}/grib_get -fp mars.time,mars.step $temp1)
|
||||
[ "$result" = "not_found not_found" ]
|
||||
|
||||
# Clean up
|
||||
rm -f $temp1 $temp2 $tempSample
|
||||
|
|
Loading…
Reference in New Issue