Current regression issues file
[snark14.git] / examples / regression
1 #!/bin/bash
2
3 # Exclude examples 7 and 11 as they use random number generator not compatible across platforms
4
5 for i in 1 2 3 4 5 6 8 9 10 12 13; 
6 do
7         echo Computing the diff for example b"$i".
8         cd b"$i"
9         if [ `diff -b -B -I '[0-9*.0-9*].*second.*' -I "time for" -I "A PICTURE RECONSTRUCTION" -I "snark14Experimenter" b"$i"r.out b"$i".out | wc -l` == 0  ]
10         then 
11                 echo "No differences found."
12         else
13                 echo "Some differences were found, you can examine them below."
14                 echo " "
15                 diff -b -B -I '[0-9*.0-9*].*second.*' -I "time for" -I "A PICTURE RECONSTRUCTION" -I "snark14Experimenter" b"$i"r.out b"$i".out | more
16         fi
17         cd ..
18 done