diff options
author | Mike Stump <mikestump@comcast.net> | 2013-05-13 17:52:42 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2013-05-13 17:52:42 +0000 |
commit | aa7e6aad59a35e22f93e18a3214bb5e441b04bce (patch) | |
tree | 1116c87660f2211823e15d9c88d663114d97dc7a /contrib | |
parent | 40042849ed11cdb11842e3224073385d4c1153f1 (diff) | |
download | gcc-aa7e6aad59a35e22f93e18a3214bb5e441b04bce.zip gcc-aa7e6aad59a35e22f93e18a3214bb5e441b04bce.tar.gz gcc-aa7e6aad59a35e22f93e18a3214bb5e441b04bce.tar.bz2 |
compare_tests: Limit lines to 2000 characters as comm on Mac OS X 10.8.3 doesn't like long...
* 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
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 5 | ||||
-rwxr-xr-x | contrib/compare_tests | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 48db27b..1cdc796 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -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. diff --git a/contrib/compare_tests b/contrib/compare_tests index b96e4a8..8ecf824 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 |