Testing: Failing cases

This commit is contained in:
Shahram Najm 2023-08-22 17:44:54 +01:00
parent 1643dcd31f
commit 358fda6954
2 changed files with 22 additions and 0 deletions

View File

@ -17,6 +17,7 @@ fRules=${label}.filter
# Do all the work in a temporary directory
temp_dir=tempdir.${label}
rm -rf $temp_dir
mkdir -p $temp_dir
cd $temp_dir
@ -43,6 +44,21 @@ for f in ${bufr_files}; do
rm -f out.filter_by_rdbSubtype.*
done
# Failing cases
# ----------------
set +e
${tools_dir}/bufr_split_by_rdbSubtype
status=$?
set -e
[ $status -eq 1 ]
set +e
${tools_dir}/bufr_split_by_rdbSubtype $data_dir
status=$?
set -e
[ $status -eq 1 ]
# Clean up
# -------------
cd $test_dir

View File

@ -68,6 +68,12 @@ status=$?
set -e
[ $status -eq 1 ]
set +e
${tools_dir}/codes_split_file 4 $data_dir
status=$?
set -e
[ $status -eq 1 ]
# Clean up
cd $test_dir