compare_dg_tests.pl: Add support for all possible status changes.

The ouput is improved to report more combinations, that were
previously silently ommitted.
Other transitions are now reported correctly.

compare_tests now removes srcdir path in testcase names
to avoid reporting differences.

Finally, a new testsuite directory contains a Makefile,
2 sample inputs and 1 expected result.

Change-Id: I67e454b198d4d80c899bd4da47924350549bae63
diff --git a/compare_tests b/compare_tests
index 74da3be..797af74 100755
--- a/compare_tests
+++ b/compare_tests
@@ -99,11 +99,13 @@
 	cat $lst5
 	( for fname in `cat $lst5`; do
 	    bname=`basename $fname .sum.xz`
-	    xzcat $1/$fname | sed -e "s/^\([A-Z]*: \)/\1 $bname:/" | sed -r 's:of file /home.*/gcc/:of file :;s:==[0-9]+==:==X==:;s/output pattern test,.*$/output pattern XXX/'
+	    xzcat $1/$fname | sed -e "s/^\([A-Z]*: \)/\1 $bname:/" | sed -r 's:of file /home.*/gcc/:of file :;s:==[0-9]+==:==X==:;s/output pattern test,.*$/output pattern XXX/' \
+		| sed -e "s|^\([A-Z]*: \).*/home/.*/testsuite/|\1|"
 	  done ) >$sum1
 	( for fname in `cat $lst5`; do
 	    bname=`basename $fname .sum.xz`
-	    xzcat $2/$fname | sed -e "s/^\([A-Z]*: \)/\1 $bname:/" | sed -r 's:of file /home.*/gcc/:of file :;s:==[0-9]+==:==X==:;s/output pattern test,.*$/output pattern XXX/'
+	    xzcat $2/$fname | sed -e "s/^\([A-Z]*: \)/\1 $bname:/" | sed -r 's:of file /home.*/gcc/:of file :;s:==[0-9]+==:==X==:;s/output pattern test,.*$/output pattern XXX/' \
+		| sed -e "s|^\([A-Z]*: \).*/home/.*/testsuite/|\1|"
 	  done ) >$sum2
 	if [ "x${target}" != "x" ] ; then
 	    unstable_target="--unstable-marker ${target}"