]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
compare_tests: Limit lines to 2000 characters as comm on Mac OS X 10.8.3 doesn't...
authorMike Stump <mikestump@comcast.net>
Mon, 13 May 2013 17:52:42 +0000 (17:52 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Mon, 13 May 2013 17:52:42 +0000 (17:52 +0000)
* 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).

From-SVN: r198840

contrib/ChangeLog
contrib/compare_tests

index 48db27b178fedea53c8ec25cffb94e571a938ec6..1cdc796db34d60dce91b2e51f0f444877f089433 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-13  Mike Stump  <mikestump@comcast.net>
+
+       * 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).
+
 2013-04-22  Sofiane Naci  <sofiane.naci@arm.com>
 
        * config-list.mk (LIST): Add aarch64-elf and aarch64-linux-gnu.
index b96e4a879c800b99b38e878b56d5eeb9c89dab65..8ecf8245b8d0c20545131f5c77656ddcea8df186 100755 (executable)
@@ -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