summaryrefslogtreecommitdiff
path: root/contrib/compare_tests
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-13 17:52:42 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-13 17:52:42 +0000
commit01849529dd2c4f5ae12fbc4ee24baaf0d96b74de (patch)
tree1116c87660f2211823e15d9c88d663114d97dc7a /contrib/compare_tests
parentd9e8e670ff9a8ec29e65bc0bc32ee97de84cd024 (diff)
* compare_tests: Limit lines to 2000 characters as comm on Mac OS
X 10.8.3 doesn't like long lines (those 2055 characters or more). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198840 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/compare_tests')
-rwxr-xr-xcontrib/compare_tests10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/compare_tests b/contrib/compare_tests
index b96e4a879c80..8ecf8245b8d0 100755
--- a/contrib/compare_tests
+++ b/contrib/compare_tests
@@ -2,6 +2,9 @@
# This script automatically test the given tool with the tool's test cases,
# reporting anything of interest.
+# Written by Mike Stump <mrs@cygnus.com>
+# Subdir comparison added by Quentin Neill <quentin.neill@amd.com>
+
usage()
{
if [ -n "$1" ] ; then
@@ -29,9 +32,6 @@ EOUSAGE
exit 2
}
-# Written by Mike Stump <mrs@cygnus.com>
-# Subdir comparison added by Quentin Neill <quentin.neill@amd.com>
-
export LC_ALL=C
tool=gxx
@@ -107,8 +107,8 @@ elif [ -d "$1" -o -d "$2" ] ; then
usage "Must specify either two directories or two files"
fi
-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
+sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$1" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp1
+sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$2" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp2
before=$tmp1
now=$tmp2