tests: New make target check-accept

Updates expected results from actual results, for review and commit.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2014-01-13 19:22:21 +01:00
parent e444cac552
commit 558b4078ff
2 changed files with 10 additions and 3 deletions

View file

@ -27,7 +27,7 @@
# Make.mk: The real Makefile, included by GNUmakefile # Make.mk: The real Makefile, included by GNUmakefile
# #
# Known contributors to this file: # Known contributors to this file:
# Markus Armbruster, 2005-2013 # Markus Armbruster, 2005-2014
# #
# This makefile was inspired by `Recursive Make Considered Harmful', # This makefile was inspired by `Recursive Make Considered Harmful',
@ -249,8 +249,11 @@ uninstall:
.PHONY: dist .PHONY: dist
dist: dist-source dist-client dist-info dist: dist-source dist-client dist-info
.PHONY: check .PHONY: check check-accept _check
check: all check check-accept: _check
check: export override EMPIRE_CHECK_ACCEPT :=
check-accept: export override EMPIRE_CHECK_ACCEPT := y
_check: all
@echo "Warning: test suite is immature and needs work." >&2 @echo "Warning: test suite is immature and needs work." >&2
$(srcdir)/tests/files-test $(srcdir) $(srcdir)/tests/files-test $(srcdir)
$(srcdir)/tests/fairland-test $(srcdir) $(srcdir)/tests/fairland-test $(srcdir)

View file

@ -172,6 +172,10 @@ cmp_out()
if msg=`diff -q "$exp" "$nrm"` if msg=`diff -q "$exp" "$nrm"`
then then
echo "$i OK" echo "$i OK"
elif [ "$EMPIRE_CHECK_ACCEPT" ]
then
echo "$i CHANGED"
cp "$nrm" "$exp"
else else
ret=$? ret=$?
echo "$i FAIL" echo "$i FAIL"