maint: make it easier to update expectations

* tests/local.mk (update-tests): New.
This commit is contained in:
Akim Demaille
2020-07-11 08:50:06 +02:00
parent a7ed13b25f
commit aa766d1560
2 changed files with 9 additions and 1 deletions

View File

@@ -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 results 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. ##
## ------------------------- ##