ECC-180: Test failure with cray intel compiler: bufr_subset.sh

This commit is contained in:
Shahram Najm 2015-11-06 17:35:12 +00:00
parent 8a90b0d272
commit bc2d1d67db
1 changed files with 7 additions and 4 deletions

View File

@ -15,7 +15,8 @@ label="bufr_subset_test_f"
#Prepare tmp file
fTmp=${label}.tmp.txt
rm -f $fTmp | true
fTmp2=${label}.tmp2.txt
rm -f $fTmp
#Prepare ref file
fRef=${label}.ref
@ -80,9 +81,11 @@ REDIRECT=/dev/stdout
#Write the values into a file and compare with reference
${examples_dir}/eccodes_f_bufr_subset 2> $REDIRECT > $fTmp
#We compare output to the reference by ignoring the whitespaces
diff -w $fRef $fTmp >$REDIRECT 2> $REDIRECT
# Remove blank lines
sed '/^\s*$/d' < $fTmp > $fTmp2
#We compare output to the reference by ignoring the whitespaces
diff -w $fRef $fTmp2 >$REDIRECT 2> $REDIRECT
#Clean up
rm -f $fTmp $fRef
rm -f $fTmp $fTmp2 $fRef