aboutsummaryrefslogtreecommitdiff
path: root/contrib/dg-extract-results.py
AgeCommit message (Collapse)AuthorFilesLines
2024-01-11dg-extract-results.py: Ignore case in header linePaul Iannetta1-1/+2
DejaGNU changed its header line from "Test Run By" to "Test run by" around 2016. This patch makes it so that both alternatives are correcly detected. contrib/ChangeLog: * dg-extract-results.py: Make the test_run regex case insensitive.
2024-01-03Update copyright years.Jakub Jelinek1-1/+1
2023-09-29Harmonize headers between both dg-extract-results scriptsPaul Iannetta1-1/+1
The header of the python version looked like: Target is ... Host is ... The header of the bash version looked like: Test run by ... on ... Target is ... After this change both headers look like: Test run by ... on ... Target is ... Host is ... The order of the tests is not the same but since dg-cmp-results.sh it does not matter much. contrib/ChangeLog: * dg-extract-results.py: Print the "Test run" line. * dg-extract-results.sh: Print the "Host" line.
2023-01-16Update copyright years.Jakub Jelinek1-1/+1
2020-05-15contrib: Handle GDB specific test result typesAndrew Burgess1-2/+4
This commit is for the benefit of GDB, but as the binutils-gdb repository shares the contrib/ directory with gcc, this commit must first be applied to gcc then copied back to binutils-gdb. This commit extends the two scripts contrib/dg-extract-results.{py,sh} to handle some new, GDB specific test result types. These test results types should never appear in GCC, or any other tool that shares the contrib/ directly, so this change should be harmless. In this patch series: https://sourceware.org/pipermail/gdb-patches/2020-April/167847.html changes were made in GDB's use of Dejagnu so that two additional conditions could be detected, these are: 1. Test names that contain either the build or source paths. Such test names make it difficult to compare the results of two test runs of GDB from two different directories, and 2. Duplicate test names. Duplicates make it difficult to track down exactly which test has failed. When running Dejagnu on GDB we can now (sometimes) see two additional test result types matching the above conditions, these are '# of paths in test names' and '# of duplicate test names'. If the test is run in parallel mode (make -j...) then these extra test results will appear in the individual test summary files, but are not merged into the final summary file. Additionally, within the summary file there are now two new types of test summary line, these are 'PATH: ...' and 'DUPLICATE: ...', these allow users to quickly search the test summary to track down where the offending test names are. These lines are similarly not merged into the unified gdb.sum file after a parallel test run. This commit extends the dg-extract-results.* scripts to calculate the totals for the two new result types, and to copy the new test summary lines into the unified summary file. contrib/ChangeLog: * dg-extract-results.py: Handle GDB specific test types. * dg-extract-results.sh: Likewise.
2019-10-21contrib: Add KPASS support to dg-extract-results.{sh,py}Andrew Burgess1-1/+1
Extend dg-extract-results.sh and dg-extract-results.py to support the KPASS test result status. This is required by GDB which uses a copy of the dg-extract-results.{sh,py} scripts that it tries to keep in sync with GCC. ChangeLog: * contrib/dg-extract-results.sh: Add support for KPASS. * contrib/dg-extract-results.py: Likewise. From-SVN: r277260
2019-04-17dg-extract-results.sh: Only handle WARNING: program timed out lines ↵Jakub Jelinek1-1/+1
specially in "$MODE" == "sum". * dg-extract-results.sh: Only handle WARNING: program timed out lines specially in "$MODE" == "sum". Restore previous behavior for "$MODE" != "sum". Clear has_timeout and timeout_cnt if in a different variant or curfile is empty. * dg-extract-results.py: Fix a typo. From-SVN: r270415
2019-03-05dg-extract-results.py: Handle case where a WARNING happens with the first ↵Christophe Lyon1-2/+2
test of a harness. 2019-03-05 Christophe Lyon <christophe.lyon@linaro.org> contrib/ * dg-extract-results.py: Handle case where a WARNING happens with the first test of a harness. From-SVN: r269394
2019-02-04contrib/dg-extract-results: Handle timeout warningsChristophe Lyon1-2/+15
2019-02-04 Christophe Lyon <christophe.lyon@linaro.org> contrib/ * dg-extract-results.py: Keep timeout warnings next to their matching test. * dg-extract-results.sh: Likewise. From-SVN: r268511
2016-09-20Report DejaGnu ERROR messages in dg-extract-results.Christophe Lyon1-3/+10
2016-09-20 Christophe Lyon <christophe.lyon@linaro.org> * dg-extract-results.py: Report DejaGnu error in the final summary. * dg-extract-results.sh: Likewise. From-SVN: r240289
2014-10-02dg-extract-results.py (output_variation): Always sort if do_sum.Segher Boessenkool1-9/+1
2014-10-02 Segher Boessenkool <segher@kernel.crashing.org> * dg-extract-results.py (output_variation): Always sort if do_sum. From-SVN: r215817
2014-09-19dg-extract-results.py (Prog.result_re): Include options in test name.Segher Boessenkool1-1/+1
2014-09-19 Segher Boessenkool <segher@kernel.crashing.org> * dg-extract-results.py (Prog.result_re): Include options in test name. From-SVN: r215400
2014-06-14dg-extract-results.py: For Python 3, force sys.stdout to handle surrogate ↵Richard Sandiford1-2/+15
escape sequences. contrib/ * dg-extract-results.py: For Python 3, force sys.stdout to handle surrogate escape sequences. (safe_open): New function. (output_segment, main): Use it. From-SVN: r211666
2014-05-25dg-extract-results.py (Named): Remove __cmp__ method.Richard Sandiford1-4/+3
contrib/ * dg-extract-results.py (Named): Remove __cmp__ method. (output_variation): Use a key to sort variation.harnesses. From-SVN: r210913
2014-05-20dg-extract-results.py (parse_run): Handle warnings that are printed before a ↵Richard Sandiford1-1/+5
test harness is run. contrib/ * dg-extract-results.py (parse_run): Handle warnings that are printed before a test harness is run. From-SVN: r210637
2014-05-08dg-extract-results.py: New file.Richard Sandiford1-0/+577
contrib/ * dg-extract-results.py: New file. * dg-extract-results.sh: Use it if the environment seems suitable. From-SVN: r210243