[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/10] maint: make it easier to update expectations
From: |
Akim Demaille |
Subject: |
[PATCH 01/10] maint: make it easier to update expectations |
Date: |
Sat, 11 Jul 2020 12:55:19 +0200 |
* tests/local.mk (update-tests): New.
---
README-hacking.md | 2 +-
tests/local.mk | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/README-hacking.md b/README-hacking.md
index e128efb3..b5245bb9 100644
--- a/README-hacking.md
+++ b/README-hacking.md
@@ -444,7 +444,7 @@ added the `[-Wother]` part to all the warnings). Part of
the update can be
done with a crude tool: `build-aux/update-test`.
Once you ran the test suite, and therefore have many `testsuite.log` files,
-run, from the source tree:
+run `make update-tests`. Or, by hand, from the *source* tree:
$ ./build-aux/update-test $build/tests/testsuite.dir/*/testsuite.log
diff --git a/tests/local.mk b/tests/local.mk
index 469b1896..2599c059 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -36,6 +36,14 @@ $(top_srcdir)/%D%/package.m4: $(top_srcdir)/configure
} >$@.tmp
$(AM_V_at)mv $@.tmp $@
+
+# Update the test cases. Consider the latest test result to be the
+# correct expectations, and change the test cases to match them.
+.PHONY: update-tests
+update-tests:
+ $(AM_V_GEN)cd $(top_srcdir) \
+ && build-aux/update-test
$(abs_builddir)/%D%/testsuite.dir/*/testsuite.log
+
## ------------------------- ##
## Generate the test suite. ##
## ------------------------- ##
--
2.27.0
- [PATCH 00/10] Update HTML reports, Akim Demaille, 2020/07/11
- [PATCH 01/10] maint: make it easier to update expectations,
Akim Demaille <=
- [PATCH 02/10] style: factor complex expressions, Akim Demaille, 2020/07/11
- [PATCH 03/10] tests: check html, Akim Demaille, 2020/07/11
- [PATCH 04/10] reports: update html ouput, Akim Demaille, 2020/07/11
- [PATCH 05/10] reports: let xml reports catch up with --report and --graph, Akim Demaille, 2020/07/11
- [PATCH 06/10] reports: let html reports catch up with --report and --graph, Akim Demaille, 2020/07/11
- [PATCH 07/10] html: simplify, Akim Demaille, 2020/07/11
- [PATCH 08/10] html: don't define several times the same anchors, Akim Demaille, 2020/07/11
- [PATCH 09/10] fixup! maint: make it easier to update expectations, Akim Demaille, 2020/07/11
- [PATCH 10/10] html: capitalize titles, Akim Demaille, 2020/07/11