diff --git a/tests/codes_export_resource.sh b/tests/codes_export_resource.sh index 4a5c2f322..02774ce58 100755 --- a/tests/codes_export_resource.sh +++ b/tests/codes_export_resource.sh @@ -14,7 +14,7 @@ label="codes_export_resource_test" temp=temp.$label # Sample files -# -------------- +# ---------------- f='GRIB2.tmpl' ${tools_dir}/codes_export_resource -s $f $temp cmp $ECCODES_SAMPLES_PATH/$f $temp @@ -23,6 +23,11 @@ cmp $ECCODES_SAMPLES_PATH/$f $temp ${tools_dir}/codes_export_resource -s GRIB2 $temp cmp $ECCODES_SAMPLES_PATH/GRIB2.tmpl $temp +# IFS Samples +# ---------------- +ECCODES_SAMPLES_PATH=/MEMFS/ifs_samples/grib1_mlgrib2 ${tools_dir}/codes_export_resource -s gg_ml.tmpl $temp + + # Definition files # ---------------- f='boot.def' @@ -34,5 +39,21 @@ ${tools_dir}/codes_export_resource -d $f $temp cmp $ECCODES_DEFINITION_PATH/$f $temp +# Failing cases +# ---------------- +set +e +${tools_dir}/codes_export_resource -d nonexistent $temp +status=$? +set -e +[ $status -eq 1 ] + +set +e +${tools_dir}/codes_export_resource -s nonexistent $temp +status=$? +set -e +[ $status -eq 1 ] + + + # Clean up rm -f $temp