From a9907bef9980dfe953a812e52760c174472ad0a6 Mon Sep 17 00:00:00 2001 From: Marian Csontos Date: Thu, 30 May 2019 18:02:55 +0200 Subject: [PATCH] test: Restore testing of D-Bus API --- test/Makefile.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/Makefile.in b/test/Makefile.in index 69e2cfcdc..fcb612ded 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -49,9 +49,9 @@ include $(top_builddir)/make.tmpl T ?= . S ?= @ # never match anything by default VERBOSE ?= 0 -ALL := $(shell find -L $(srcdir) \( -path \*/shell/\*.sh -or -path \*/unit/\*.sh \) | $(SORT)) +ALL := $(shell find -L $(srcdir) \( -path \*/shell/\*.sh -or -path \*/api/\*.sh -or -path \*/unit/\*.sh \) | $(SORT)) comma = , -RUN := $(shell find -L $(srcdir) -regextype posix-egrep \( -path \*/shell/\*.sh -or -path \*/unit/\*.sh \) -and -regex "$(srcdir)/.*($(subst $(comma),|,$(T))).*" -and -not -regex "$(srcdir)/.*($(subst $(comma),|,$(S))).*" | $(SORT)) +RUN := $(shell find -L $(srcdir) -regextype posix-egrep \( -path \*/shell/\*.sh -or -path \*/api/\*.sh -or -path \*/unit/\*.sh \) -and -regex "$(srcdir)/.*($(subst $(comma),|,$(T))).*" -and -not -regex "$(srcdir)/.*($(subst $(comma),|,$(S))).*" | $(SORT)) RUN_BASE = $(subst $(srcdir)/,,$(RUN)) ifeq ("@BUILD_LVMPOLLD@", "yes") @@ -200,8 +200,9 @@ LIB_SHARED = check aux inittest utils get lvm-wrapper install: .tests-stamp lib/paths-installed @echo $(srcdir) - $(Q) $(INSTALL_DIR) $(DATADIR)/{shell,unit,lib,dbus} $(EXECDIR) + $(Q) $(INSTALL_DIR) $(DATADIR)/{shell,api,unit,lib,dbus} $(EXECDIR) $(Q) $(INSTALL_DATA) shell/*.sh $(DATADIR)/shell + $(INSTALL_DATA) api/*.sh $(DATADIR)/api $(Q) $(INSTALL_DATA) unit/*.sh $(DATADIR)/unit -$(Q) $(INSTALL_PROGRAM) unit/unit-test $(DATADIR)/unit -$(Q) $(INSTALL_PROGRAM) dbus/*.py $(DATADIR)/dbus/ @@ -291,7 +292,7 @@ lib/paths-installed: lib/paths-common $(Q) $(RM) $@-t $(Q) cat lib/paths-common > $@-t $(Q) echo 'installed_testsuite=1' >> $@-t - $(Q) echo 'export PATH=@libexecdir@/lvm2-testsuite:@datadir@/lvm2-testsuite/lib:$$PATH' >> $@-t + $(Q) echo 'export PATH=@libexecdir@/lvm2-testsuite:@datadir@/lvm2-testsuite/lib:@datadir@/lvm2-testsuite/api:$$PATH' >> $@-t $(Q) mv $@-t $@ lib/paths: lib/paths-common -- 2.43.5