524fbc64196d5c042ecdb99bddc902f725b84f7d
[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 # Exclude example 12 as small differences in phi across gcc5.4 vs gcc7.2
5
6 for i in 1 2 3 4 5 6 8 9 10 13; 
7 do
8         echo Computing the diff for example b"$i".
9         cd b"$i"
10         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  ]
11         then 
12                 echo "No differences found."
13         else
14                 echo "Some differences were found, you can examine them below."
15                 echo " "
16                 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
17         fi
18         cd ..
19 done