1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

test: Add a new "check_full" target, which also tests with real /dev.

The original "check" target stays confined to a local device directory, while
check_full does 6 flavours, 3 with a local device directory and 3 with the
global /dev directory (the latter are prefixed with "s" for
"system"). I.e.: normal, cluster, lvmetad, snormal, scluster, slvmetad.
This commit is contained in:
Petr Rockai 2013-08-23 10:09:23 +02:00
parent b516a72b11
commit 64fe17dc94
2 changed files with 17 additions and 1 deletions

View File

@ -94,7 +94,7 @@ all: cscope.out
endif
DISTCLEAN_TARGETS += cscope.out
check check_cluster check_local check_lvmetad unit: all
check check_full check_cluster check_local check_lvmetad unit: all
$(MAKE) -C test $(@)
install_system_dirs:

View File

@ -77,6 +77,22 @@ check: .tests-stamp
$(patsubst %,cluster:%,$(RUN_BASE)) \
$(patsubst %,lvmetad:%,$(RUN_BASE))
check_full: .tests-stamp
VERBOSE=$(VEROSE) \
cluster_LVM_TEST_LOCKING=3 \
scluster_LVM_TEST_LOCKING=3 \
lvmetad_LVM_TEST_LVMETAD=1 \
slvmetad_LVM_TEST_LVMETAD=1 \
snormal_LVM_TEST_DEVDIR=/dev \
scluster_LVM_TEST_DEVDIR=/dev \
slvmetad_LVM_TEST_DEVDIR=/dev \
./lib/harness $(patsubst %,normal:%,$(RUN_BASE)) \
$(patsubst %,cluster:%,$(RUN_BASE)) \
$(patsubst %,lvmetad:%,$(RUN_BASE)) \
$(patsubst %,snormal:%,$(RUN_BASE)) \
$(patsubst %,scluster:%,$(RUN_BASE)) \
$(patsubst %,slvmetad:%,$(RUN_BASE))
check_cluster: .tests-stamp
@echo Testing with locking_type 3
VERBOSE=$(VERBOSE) LVM_TEST_LOCKING=3 ./lib/harness $(RUN_BASE)