summaryrefslogtreecommitdiff
path: root/test/api
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-05-18 16:16:09 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2018-05-18 16:25:44 +0200
commitfbf64fe730ffa27ee94867017742174f270d3fa0 (patch)
tree9cb88fe29d64773174d6eafbf622d8fc419cfb1f /test/api
parent43fb32e761a2c4d1ebaec5eff9d9f0f372563cf9 (diff)
downloadlvm2-fbf64fe730ffa27ee94867017742174f270d3fa0.tar.gz
tests; make sure python_lvm_unit.py is executable
Diffstat (limited to 'test/api')
-rw-r--r--test/api/Makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/api/Makefile.in b/test/api/Makefile.in
index e953675a0..1659b872c 100644
--- a/test/api/Makefile.in
+++ b/test/api/Makefile.in
@@ -38,6 +38,8 @@ SOURCES2 = \
endif
+PYTEST = python_lvm_unit.py
+
include $(top_builddir)/make.tmpl
DEFS += -D_REENTRANT
@@ -48,6 +50,9 @@ LIBS += @LVM2APP_LIB@ $(DMEVENT_LIBS) -ldevmapper
%.t: %.o $(DEPLIBS)
$(CC) -o $@ $(<) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) $(LIBS)
+all:
+ test -x $(PYTEST) || chmod 755 $(PYTEST)
+
test: $(OBJECTS) $(DEPLIBS)
$(CC) -o $@ $(OBJECTS) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) $(LIBS) $(READLINE_LIBS)