mirror of https://github.com/ecmwf/eccodes.git
Testing: Increase coverage
This commit is contained in:
parent
a2adea7b81
commit
18d42c859f
|
@ -221,6 +221,26 @@ set -e
|
||||||
grep -q "Unable to set stepRange" $templog
|
grep -q "Unable to set stepRange" $templog
|
||||||
|
|
||||||
|
|
||||||
|
# GRIB1: sub-hourly
|
||||||
|
# -----------------
|
||||||
|
${tools_dir}/grib_set -s unitOfTimeRange=0,P1=5 $grib1_sample $temp
|
||||||
|
set +e
|
||||||
|
${tools_dir}/grib_get -p step $temp 2>$templog
|
||||||
|
status=$?
|
||||||
|
set -e
|
||||||
|
[ $status -ne 0 ]
|
||||||
|
grep -q "unable to represent the step in h" $templog
|
||||||
|
|
||||||
|
# GRIB1: Unknown timeRangeIndicator
|
||||||
|
${tools_dir}/grib_set -s timeRangeIndicator=138 $grib1_sample $temp
|
||||||
|
set +e
|
||||||
|
${tools_dir}/grib_get -p step $temp 2>$templog
|
||||||
|
status=$?
|
||||||
|
set -e
|
||||||
|
[ $status -ne 0 ]
|
||||||
|
grep -q "Unknown stepType" $templog
|
||||||
|
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -f $temp $templog
|
rm -f $temp $templog
|
||||||
rm -f $grib2File.p8tmp ${grib2File}.tmp x.grib
|
rm -f $grib2File.p8tmp ${grib2File}.tmp x.grib
|
||||||
|
|
|
@ -599,7 +599,13 @@ void test_sarray()
|
||||||
grib_sarray_push(c, a, "ants");
|
grib_sarray_push(c, a, "ants");
|
||||||
grib_sarray_push(c, a, "bugs");
|
grib_sarray_push(c, a, "bugs");
|
||||||
grib_sarray_print("sarray", a);
|
grib_sarray_print("sarray", a);
|
||||||
|
|
||||||
|
grib_vsarray* va = grib_vsarray_new(c, 1, 1);
|
||||||
|
grib_vsarray_push(c, va, a);
|
||||||
|
grib_vsarray_print("vsarray", va);
|
||||||
|
|
||||||
grib_sarray_delete(c, a);
|
grib_sarray_delete(c, a);
|
||||||
|
grib_vsarray_delete(c, va);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_codes_get_product_name()
|
void test_codes_get_product_name()
|
||||||
|
|
Loading…
Reference in New Issue