Commit aa7e6aad by Mike Stump Committed by Mike Stump

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
parent 40042849
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> 2013-04-22 Sofiane Naci <sofiane.naci@arm.com>
* config-list.mk (LIST): Add aarch64-elf and aarch64-linux-gnu. * config-list.mk (LIST): Add aarch64-elf and aarch64-linux-gnu.
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
# This script automatically test the given tool with the tool's test cases, # This script automatically test the given tool with the tool's test cases,
# reporting anything of interest. # reporting anything of interest.
# Written by Mike Stump <mrs@cygnus.com>
# Subdir comparison added by Quentin Neill <quentin.neill@amd.com>
usage() usage()
{ {
if [ -n "$1" ] ; then if [ -n "$1" ] ; then
...@@ -29,9 +32,6 @@ EOUSAGE ...@@ -29,9 +32,6 @@ EOUSAGE
exit 2 exit 2
} }
# Written by Mike Stump <mrs@cygnus.com>
# Subdir comparison added by Quentin Neill <quentin.neill@amd.com>
export LC_ALL=C export LC_ALL=C
tool=gxx tool=gxx
...@@ -107,8 +107,8 @@ elif [ -d "$1" -o -d "$2" ] ; then ...@@ -107,8 +107,8 @@ elif [ -d "$1" -o -d "$2" ] ; then
usage "Must specify either two directories or two files" usage "Must specify either two directories or two files"
fi 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/' < "$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; }' >$tmp2 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 before=$tmp1
now=$tmp2 now=$tmp2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment