Added snark14m distribution examples
[snark14.git] / examples / regression
diff --git a/examples/regression b/examples/regression
new file mode 100755 (executable)
index 0000000..281ebe7
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+for i in `seq 1 11`; 
+do
+       echo Computing the diff for example b"$i".
+       cd b"$i"
+       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  ]
+       then 
+               echo "No differences found."
+       else
+               echo "Some differences were found, you can examine them below."
+               echo " "
+               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
+       fi
+       cd ..
+done