Added snark14m distribution examples
[snark14.git] / examples / regression
1 #!/bin/bash
2 for i in `seq 1 11`; 
3 do
4         echo Computing the diff for example b"$i".
5         cd b"$i"
6         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  ]
7         then 
8                 echo "No differences found."
9         else
10                 echo "Some differences were found, you can examine them below."
11                 echo " "
12                 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
13         fi
14         cd ..
15 done