summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2013-12-05 12:31:49 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2013-12-05 12:40:47 +0100
commitc7b733cd6cbc69e4a681b17ca4e89eb9fcd6d31f (patch)
treed777568eab6b9d14ad3be1d1a92448664cb7cbd1
parent6f0300de9653063222c536b7cb04784d94787dd0 (diff)
downloadlvm2-c7b733cd6cbc69e4a681b17ca4e89eb9fcd6d31f.tar.gz
tests: do not run lvmetad tests without lvmetad
Skip tests when lvmetad is not compiled.
-rw-r--r--test/Makefile.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 943a4ce6e..96c4fdb99 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -42,6 +42,11 @@ comma = ,
RUN = $(shell find $(srcdir) -regextype posix-egrep \( -path \*/shell/\*.sh -or -path \*/api/\*.sh \) -and -regex "$(srcdir)/.*($(subst $(comma),|,$(T))).*" -and -not -regex "$(srcdir)/.*($(subst $(comma),|,$(S))).*" | sort)
RUN_BASE = $(subst $(srcdir)/,,$(RUN))
+ifeq ("@BUILD_LVMETAD@", "yes")
+LVMETAD_RUN_BASE = $(RUN_BASE)
+endif
+
+
# Shell quote;
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
@@ -83,7 +88,7 @@ check: .tests-stamp
lvmetad_LVM_TEST_LVMETAD=1 \
./lib/harness $(patsubst %,normal:%,$(RUN_BASE)) \
$(patsubst %,cluster:%,$(RUN_BASE)) \
- $(patsubst %,lvmetad:%,$(RUN_BASE))
+ $(patsubst %,lvmetad:%,$(LVMETAD_RUN_BASE))
check_full: .tests-stamp
VERBOSE=$(VERBOSE) \
@@ -96,10 +101,10 @@ check_full: .tests-stamp
slvmetad_LVM_TEST_DEVDIR=/dev \
./lib/harness $(patsubst %,normal:%,$(RUN_BASE)) \
$(patsubst %,cluster:%,$(RUN_BASE)) \
- $(patsubst %,lvmetad:%,$(RUN_BASE)) \
+ $(patsubst %,lvmetad:%,$(LVMETAD_RUN_BASE)) \
$(patsubst %,snormal:%,$(RUN_BASE)) \
$(patsubst %,scluster:%,$(RUN_BASE)) \
- $(patsubst %,slvmetad:%,$(RUN_BASE))
+ $(patsubst %,slvmetad:%,$(LVMETAD_RUN_BASE))
check_cluster: .tests-stamp
@echo Testing with locking_type 3
@@ -109,9 +114,11 @@ check_local: .tests-stamp
@echo Testing with locking_type 1
VERBOSE=$(VERBOSE) LVM_TEST_LOCKING=1 ./lib/harness $(RUN_BASE)
+ifeq ("@BUILD_LVMETAD@", "yes")
check_lvmetad: .tests-stamp
@echo Testing with lvmetad on
VERBOSE=$(VERBOSE) LVM_TEST_LVMETAD=1 ./lib/harness $(RUN_BASE)
+endif
lib/should: lib/not
ln -sf not lib/should