From b0c22a42bd5ff2ab571e843381f18d9bbcdbdda9 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sat, 13 Mar 2021 18:24:23 +0000 Subject: [PATCH] Testing: Fix names of output temp files --- tests/bufr_filter_extract_subsets.sh | 21 ++++++++++----------- tests/bufr_filter_unpack_pack.sh | 12 ++++++------ 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/tests/bufr_filter_extract_subsets.sh b/tests/bufr_filter_extract_subsets.sh index 22c7a8900..d985b6343 100755 --- a/tests/bufr_filter_extract_subsets.sh +++ b/tests/bufr_filter_extract_subsets.sh @@ -21,8 +21,8 @@ fLog=${label}".log" rm -f $fLog touch $fLog -# Define tmp bufr file -fBufrTmp=${label}".bufr.tmp" +fBufrTmp1=temp1.${label}.bufr +fBufrTmp2=temp2.${label}.bufr # Define filter rules file fRules=${label}.filter @@ -96,7 +96,7 @@ write; EOF f="g2nd_208.bufr" -fOut="g2nd_208.bufr.out" +fOut="$label.g2nd_208.bufr.out" echo "Test: extract subsets compressed data" >> $fLog echo "file: $f" >> $fLog @@ -149,7 +149,7 @@ f="imssnow.bufr" echo "Test: Simple thinning" >> $fLog echo "file: $f" >> $fLog -${tools_dir}/codes_bufr_filter -o ${f}.out $fRules $f +${tools_dir}/codes_bufr_filter -o $fBufrTmp1 $fRules $f cat > $fRules < ${f}.log +${tools_dir}/codes_bufr_filter $fRules $fBufrTmp1 > ${f}.log cat > ${f}.log.ref <> $fLog echo "file: $f" >> $fLog -${tools_dir}/codes_bufr_filter -o ${f}.out $fRules $f +${tools_dir}/codes_bufr_filter -o $fBufrTmp1 $fRules $f cat > $fRules < $fRules < ${f}.log +${tools_dir}/codes_bufr_filter $fRules $fBufrTmp2 > ${f}.log cat > ${f}.log.ref < $fRules <> $fLog - ${tools_dir}/codes_bufr_filter -o ${f}.out $fRules $f 2>> $fLog 1>> $fLog + echo "Test: unpack and pack $f ..." >> $fLog + ${tools_dir}/codes_bufr_filter -o $temp $fRules $f 2>> $fLog 1>> $fLog + ${tools_dir}/bufr_compare $temp $f - ${tools_dir}/bufr_compare ${f}.out $f - - rm -f ${f}.out + rm -f $temp done -rm -f $fRules $fLog +rm -f $fRules $fLog $temp