mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
maint: make it easier to update expectations
* tests/local.mk (update-tests): New.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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. ##
|
||||
## ------------------------- ##
|
||||
|
||||
Reference in New Issue
Block a user