From 358fda69543d396471b00ce8007941eb3a2f0ef8 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 22 Aug 2023 17:44:54 +0100 Subject: [PATCH] Testing: Failing cases --- tests/bufr_split_by_rdbSubtype.sh | 16 ++++++++++++++++ tests/codes_split_file.sh | 6 ++++++ 2 files changed, 22 insertions(+) diff --git a/tests/bufr_split_by_rdbSubtype.sh b/tests/bufr_split_by_rdbSubtype.sh index 5bd28151c..faa4b49e2 100755 --- a/tests/bufr_split_by_rdbSubtype.sh +++ b/tests/bufr_split_by_rdbSubtype.sh @@ -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 diff --git a/tests/codes_split_file.sh b/tests/codes_split_file.sh index 9f5577f14..86077999a 100755 --- a/tests/codes_split_file.sh +++ b/tests/codes_split_file.sh @@ -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