From 0a60332e1bcff698555d31c8b2524a435a93a3f9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 28 May 2013 21:33:56 +0100 Subject: [PATCH] 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. --- Makefile.am | 13 +++++++++++++ README | 7 +++++++ contrib/README | 2 +- src/guestfs.pod | 4 ++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 4196b93ec..b01d1bc5e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/README b/README index 3ebaeb4ea..2ec8e28a2 100644 --- a/README +++ b/README @@ -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. diff --git a/contrib/README b/contrib/README index bee683e11..081a11698 100644 --- a/contrib/README +++ b/contrib/README @@ -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. diff --git a/src/guestfs.pod b/src/guestfs.pod index 66ed2ed6f..6bc604c7a 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -3919,6 +3919,10 @@ Runs some slow/long-running tests which are not run by default. Any C in the tree that has a C target will be run by this rule. +=item C + +Equivalent to running all C rules. + =back =head2 DAEMON CUSTOM PRINTF FORMATTERS