mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests: Add 'make check-slow' rule to recursively run slow/long-running tests.
This commit is contained in:
10
Makefile.am
10
Makefile.am
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user