aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@linaro.org>2018-10-25 10:35:21 +0000
committerThomas Preud'homme <thopre01@gcc.gnu.org>2018-10-25 10:35:21 +0000
commit46ec9261008a118470c43d6b7eeb95e4c4b12e67 (patch)
tree26757e39aab17331c60cfba1a6c0de5a1632507d /contrib
parent541eccada375ed8309ab805e0a4df146ac07fc2d (diff)
downloadgcc-46ec9261008a118470c43d6b7eeb95e4c4b12e67.zip
gcc-46ec9261008a118470c43d6b7eeb95e4c4b12e67.tar.gz
gcc-46ec9261008a118470c43d6b7eeb95e4c4b12e67.tar.bz2
dg-cmp-results: display NA->FAIL & NA->UNRESOLVED by default
Currently, dg-cmp-results will not print anything for a test that was not run before, even if it is a FAIL or UNRESOLVED now. This means that when contributing a code change together with a testcase in the same commit one must run dg-cmp-results twice: once to check for regression on a full testsuite run and once against the new testcase with -v -v. This also prevents using dg-cmp-results on sum files generated with test_summary since these would not contain PASS. This patch changes dg-cmp-results to print NA->FAIL and NA->UNRESOLVED changes by default. 2018-10-25 Thomas Preud'homme <thomas.preudhomme@linaro.org> contrib/ * dg-cmp-results.sh: Print NA-FAIL and NA->UNRESOLVED changes at default verbosity. From-SVN: r265483
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rwxr-xr-xcontrib/dg-cmp-results.sh7
2 files changed, 10 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 8ce2f93..6606b1d 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-25 Thomas Preud'homme <thomas.preudhomme@linaro.org>
+
+ * dg-cmp-results.sh: Print NA-FAIL and NA->UNRESOLVED changes at
+ default verbosity.
+
2018-10-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config-list.mk (LIST): Switch to i686-solaris2.11,
diff --git a/contrib/dg-cmp-results.sh b/contrib/dg-cmp-results.sh
index 821d557..eb976f6 100755
--- a/contrib/dg-cmp-results.sh
+++ b/contrib/dg-cmp-results.sh
@@ -137,8 +137,11 @@ function drop() {
function compare(st, nm) {
old = peek()
if (old == 0) {
- # This new test wasn't run last time.
- if (verbose >= 2) printf("NA->%s:%s\n", st, nm)
+ # This new test wasn't run last time.
+ if(st == "FAIL" || st == "UNRESOLVED" || verbose >= 2) {
+ # New test fails or we want all changes
+ printf("NA->%s:%s\n", st, nm)
+ }
}
else {
# Compare this new test to the first queued old one.