OSDN Git Service

* compare_tests: Handle multilibs better.
[pf3gnuchains/gcc-fork.git] / contrib / compare_tests
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