mirror of https://github.com/ecmwf/eccodes.git
Testing
This commit is contained in:
parent
e874f7c9c7
commit
99ad275265
|
@ -41,7 +41,6 @@ ${tools_dir}/grib_filter -o $tempGrib $tempFilt $sample2
|
|||
${tools_dir}/grib_ls -l 37.5,16.0,1 $tempGrib > $tempOut
|
||||
|
||||
grep -q "Grid Point chosen #1 index=5016590" $tempOut
|
||||
grep -q "grid_simple 42" $tempOut
|
||||
|
||||
${tools_dir}/grib_ls -j -l 37.5,16.0,1 $tempGrib > $tempOut
|
||||
grep -q 'latitude" : 37.5, "longitude" : 16, "distance" : 0,.*"value" : 42 ,' $tempOut
|
||||
|
|
|
@ -21,10 +21,13 @@ infile=regular_gaussian_model_level.grib1
|
|||
|
||||
# Basic test of man page
|
||||
set +e
|
||||
${tools_dir}/grib_ls > /dev/null
|
||||
${tools_dir}/grib_ls > $tempLog
|
||||
status=$?
|
||||
set -e
|
||||
[ $status -eq 1 ]
|
||||
grep -q "Full documentation and examples at" $tempLog
|
||||
grep -q "https://confluence.ecmwf.int/display/ECC/grib_ls" $tempLog
|
||||
|
||||
|
||||
${tools_dir}/grib_ls -P count $infile > $tempLog
|
||||
${tools_dir}/grib_ls -p count,step $infile >> $tempLog
|
||||
|
|
Loading…
Reference in New Issue