Commit Graph

14 Commits

Author SHA1 Message Date
Alexandre Oliva
586e32583a compare_tests: distinguish c-c++-common results by tool
When compare_tests compares both C and C++ tests in c-c++-common, they
get the same identifier, so expected differences in results across
languages become undesirably noisy.

This patch adds tool identifiers to tests, so that runs by different
tools are not confused by the compare logic.

It also fixes a bug in reporting differences, that would attempt to
print an undefined fname (the definitions are in subshell loops), and
adjusts the target insertion to match tabs in addition to blanks after
colons.


for  contrib/ChangeLog

	* compare_tests: Add tool to test lines.  Match tabs besides
	blanks to insert tool and target.  Don't print undefined fname.
2023-12-21 01:02:41 -03:00
Christophe Lyon
e57aae39e0 [contrib] compare_tests: Print number of tests
2018-07-12  Christophe Lyon  <christophe.lyon@linaro.org>

	* compare_tests: Print number of tests in each category.

From-SVN: r262600
2018-07-12 20:18:41 +02:00
Yury Gribov
9f88a07b85 Respect TMPDIR in contrib scripts.
2018-02-18  Yury Gribov  <tetra2005@gmail.com>

contrib/
	* compare_tests: Use TMPDIR when set.
	* dg-cmp-results.sh: Ditto.
	* warn_summary: Ditto.

From-SVN: r257801
2018-02-19 08:03:17 +00:00
Christophe Lyon
b0a5704b4c Report DejaGnu ERROR messages in compare_tests
2016-09-20  Christophe Lyon  <christophe.lyon@linaro.org>

	* compare_tests: Take ERROR messages into account when
          comparing.

From-SVN: r240288
2016-09-20 22:14:14 +02:00
Mike Stump
aa7e6aad59 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
2013-05-13 17:52:42 +00:00
Mike Stump
a59a2c2116 * compare_tests: Add export LC_ALL=C to make sort happier.
From-SVN: r193631
2012-11-19 18:16:36 +00:00
Manuel López-Ibáñez
af13465ffb compare_tests: Append '/' to make 'find' traverse symlinked directories.
2012-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>

contrib/
	* compare_tests: Append '/' to make 'find' traverse
	symlinked directories.

From-SVN: r186750
2012-04-24 07:22:41 +00:00
Quentin Neill
e53182b762 compare_tests: Fix trailing paths in dir arguments.
2012-02-15   Quentin Neill  <quentin.neill@amd.com>

	* compare_tests: Fix trailing paths in dir arguments.
	Handle sum1/sum2 temp files with others.

From-SVN: r184284
2012-02-15 20:58:40 +00:00
Mike Stump
44414d2f82 * compare_tests (exit_status): Fix.
From-SVN: r184130
2012-02-11 14:15:22 +00:00
Quentin Neill
cf7716a257 compare_tests: Add ability to compare all .sum files from two build directories.
2011-11-07   Quentin Neill  <quentin.neill@amd.com>

	* compare_tests: Add ability to compare all .sum
	files from two build directories.

From-SVN: r181149
2011-11-08 04:28:04 +00:00
Paul Eggert
27b56ba6cc Port to hosts whose 'sort' and 'tail' implementations treat operands with leading '+' as file names...
Port to hosts whose 'sort' and 'tail' implementations
	treat operands with leading '+' as file names, as POSIX
	has required since 2001.  However, make sure the code still
	works on pre-POSIX hosts.
	* ltmain.sh: Don't assume "sort +2" is equivalent to
	"sort -k 3", since POSIX 1003.1-2001 no longer requires this.

contrib:
	* compare_tests: Don't assume "sort +2" is equivalent to
	"sort -k 3", since POSIX 1003.1-2001 no longer requires this.
gcc:
	* Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
	which says you should use "tail -c +N" rather than "tail +Nc".
	Fix a bug: the old code incorrectly skipped 15 bytes, not 16.

From-SVN: r115234
2006-07-06 23:24:51 +00:00
Richard Earnshaw
e58b87f712 compare_tests: Handle multilibs better.
* compare_tests: Handle multilibs better.

Co-Authored-By: Mike Stump <mrs@apple.com>

From-SVN: r114331
2006-06-02 23:47:35 +00:00
Mike Stump
112a0bfd7a * compare_tests: Fix exit status and be more flexible with spacing.
From-SVN: r65255
2003-04-04 22:49:10 +00:00
Mike Stump
31e9c6ed12 * compare_tests: New script.
From-SVN: r21422
1998-07-27 15:12:03 -06:00