OSDN Git Service

* compare_tests: Handle multilibs better.
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Jun 2006 23:47:35 +0000 (23:47 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Jun 2006 23:47:35 +0000 (23:47 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114331 138bc75d-0d04-0410-961f-82ee72b054a4

contrib/ChangeLog
contrib/compare_tests

index 4673135..3a59cb6 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-02  Richard Earnshaw  <rearnsha@arm.com>
+           Mike Stump  <mrs@apple.com>
+
+       * compare_tests: Handle multilibs better.
+
 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * texi2pod.pl: Correct handling of absolute @include.
index a7fc671..bcf678c 100755 (executable)
@@ -22,8 +22,8 @@ if [ "$2" = "" ]; then
        exit 2
 fi
 
-sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$1" >$tmp1
-sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$2" >$tmp2
+sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$1" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' >$tmp1
+sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$2" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' >$tmp2
 
 before=$tmp1
 now=$tmp2