2017-01-10 10:43:13 +01:00
|
|
|
commit 0402acbbb9f8f6066a3f7899e8cc3ae72b84ee20
|
|
|
|
Author: Zhilong Liu <zlliu@suse.com>
|
|
|
|
Date: Wed Dec 7 02:43:10 2016 -0500
|
|
|
|
|
2017-10-23 13:56:11 +02:00
|
|
|
add a new test package named lvm2-testsuite(bnc#950089)
|
|
|
|
+ lvm2-testsuite.patch
|
|
|
|
Currently this new package is not enabled by default.
|
|
|
|
Please set enable_testsuite to 1 to turn it on in the
|
|
|
|
spec file.
|
|
|
|
|
|
|
|
Eric:
|
|
|
|
|
|
|
|
This patch is to solve the following obs building error:
|
|
|
|
|
|
|
|
"""
|
|
|
|
E: arch-dependent-file-in-usr-share (Badness: 590) /usr/share/lvm2-testsuite/api/lvtest.t
|
|
|
|
...
|
|
|
|
"""
|
|
|
|
|
|
|
|
So, move the *.t binary into /usr/lib/lvm2-testsuite/.
|
|
|
|
|
|
|
|
Signed-off-by: Zhilong Liu <zlliu@suse.com>
|
2017-01-10 10:43:13 +01:00
|
|
|
|
|
|
|
diff --git a/test/Makefile.in b/test/Makefile.in
|
|
|
|
index f152868..f0845d7 100644
|
|
|
|
--- a/test/Makefile.in
|
|
|
|
+++ b/test/Makefile.in
|
|
|
|
@@ -224,7 +224,7 @@ install: .tests-stamp lib/paths-installed
|
|
|
|
$(INSTALL_DATA) api/*.sh $(DATADIR)/api
|
2018-08-21 05:13:03 +02:00
|
|
|
$(INSTALL_DATA) unit/*.sh $(DATADIR)/unit
|
2017-01-10 10:43:13 +01:00
|
|
|
$(INSTALL_DATA) lib/mke2fs.conf $(DATADIR)/lib
|
|
|
|
- $(INSTALL_PROGRAM) api/*.{t,py} $(DATADIR)/api
|
|
|
|
+ $(INSTALL_PROGRAM) api/*.py $(DATADIR)/api/
|
2018-08-21 05:13:03 +02:00
|
|
|
$(INSTALL_PROGRAM) unit/unit-test $(DATADIR)/unit
|
2017-01-10 10:43:13 +01:00
|
|
|
$(INSTALL_PROGRAM) dbus/*.py $(DATADIR)/dbus/
|
|
|
|
$(INSTALL_DATA) lib/paths-installed $(DATADIR)/lib/paths
|
|
|
|
@@ -244,6 +244,7 @@ install: .tests-stamp lib/paths-installed
|
|
|
|
@cd $(EXECDIR) && for i in $(LIB_LINK_NOT); do \
|
|
|
|
echo "$(LN_S) -f not $$i"; \
|
|
|
|
$(LN_S) -f not $$i; done
|
|
|
|
+ $(INSTALL_PROGRAM) api/*.t $(EXECDIR)
|
|
|
|
$(INSTALL_PROGRAM) -D lib/runner $(bindir)/lvm2-testsuite
|
|
|
|
|
|
|
|
lib/should: lib/not
|