tests: Add 'make check-slow' rule to recursively run slow/long-running tests.

This commit is contained in:
Richard W.M. Jones
2012-11-13 13:46:47 +00:00
parent cb4284b9e3
commit ee5f18293b
3 changed files with 20 additions and 6 deletions

View File

@@ -298,7 +298,8 @@ extra-tests:
valgrind-local-guests \
check-with-appliance \
check-with-upstream-qemu \
check-with-upstream-libvirt
check-with-upstream-libvirt \
check-slow
check-valgrind: build-test-guests
@for f in `grep -l '^$@:' $(SUBDIRS:%=%/Makefile.am)`; do \
@@ -313,6 +314,12 @@ check-valgrind-local-guests:
$(MAKE) GUESTS="$$GUESTS" -C `dirname $$f` $@ || exit $$?; \
done
check-slow: build-test-guests
for f in `grep -l '^$@:' $(SUBDIRS:%=%/Makefile.am)`; do \
echo $(MAKE) -C `dirname $$f` $@; \
$(MAKE) -C `dirname $$f` $@ || exit $$?; \
done
build-test-guests:
$(MAKE) -C tests/guests check
@@ -360,6 +367,7 @@ help:
@echo "make check-with-appliance Test using appliance attach-method."
@echo "make check-with-upstream-qemu Test using upstream qemu."
@echo "make check-with-upstream-libvirt Test using upstream libvirt."
@echo "make check-slow Slow/long-running tests."
@echo "make extra-tests Same as check-* (but not 'make check')"
@echo "make syntax-check Check syntax and style problems in the code."
@echo

View File

@@ -3548,6 +3548,10 @@ but you can set this to another directory on the command line, eg:
make check-with-upstream-libvirt LIBVIRTDIR=/usr/src/libvirt
=item C<make check-slow>
Runs some slow/long-running tests which are not run by default.
=item C<make extra-tests>
Equivalent to running all C<make check-*> rules

View File

@@ -19,10 +19,12 @@ include $(top_srcdir)/subdir-rules.mk
EXTRA_DIST = test-big-dirs.pl
# Don't run this test by default. It takes a very long time
# to run and is not especially informative. However we have to
# have an empty TESTS rule otherwise you can't run the test
# from the command line using 'make check TESTS=test-big-dirs.pl'
# Don't run this test by default. It takes a very long time to run
# and is not especially informative. However we have to have an empty
# TESTS rule otherwise you can't run the test from the command line
# using 'make TESTS=test-big-dirs.pl check'
TESTS =
TESTS_ENVIRONMENT = $(top_builddir)/run --test
check-slow:
$(MAKE) TESTS="test-big-dirs.pl" check