tests: Add new 'make check-all' rule.

This runs all of the check* rules.  Since this includes 'make check',
'make check-all' is not quite equivalent to the old 'make extra-tests'
which was removed in the previous commit.
This commit is contained in:
Richard W.M. Jones
2013-05-28 21:33:56 +01:00
parent ffde7b4d71
commit 0a60332e1b
4 changed files with 25 additions and 1 deletions

View File

@@ -328,6 +328,17 @@ quickcheck:
# Non-standard tests.
check-all:
$(MAKE) -j1 \
check \
check-valgrind \
check-valgrind-local-guests \
check-direct \
check-valgrind-direct \
check-with-upstream-qemu \
check-with-upstream-libvirt \
check-slow
check-valgrind: build-test-guests
@errors=0; \
for f in `grep -l '^$@:' $(SUBDIRS:%=%/Makefile.am)`; do \
@@ -434,6 +445,8 @@ help:
@echo "make check-with-upstream-libvirt Test using upstream libvirt."
@echo "make check-slow Slow/long-running tests."
@echo
@echo "make check-all Runs all 'check*' rules."
@echo
@echo "make syntax-check -j1 -k Check syntax and style problems in the code."
@echo "make print-subdirs Print subdirectories."
@echo

7
README
View File

@@ -236,6 +236,13 @@ Also:
runs a subset of the test suite under valgrind (requires valgrind to
be installed obviously).
make check-all
runs check-valgrind + even more tests, but these require that you have
some libvirt guests installed, that these guests' disks are accessible
by the current user, and these tests may fail for other reasons which
are not necessarily because of real problems.
make help
lists all 'make' targets.

View File

@@ -17,7 +17,7 @@ intro/ "Slides" for an intro to libguestfs. This is a short (10-15
make-check-on-installed.pl
This Perl script allows you to run the test suite (ie. 'make
check', etc) on an installed RPM. This is
check', 'make check-all' etc) on an installed RPM. This is
useful for adding another layer of testing to packages before
we release them. Note that a checked out copy of the source
from git is required. Read the top of the file before using.

View File

@@ -3919,6 +3919,10 @@ Runs some slow/long-running tests which are not run by default.
Any C<Makefile.am> in the tree that has a C<check-slow:> target will
be run by this rule.
=item C<make check-all>
Equivalent to running all C<make check*> rules.
=back
=head2 DAEMON CUSTOM PRINTF FORMATTERS