diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-12-01 00:44:22 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-12-01 01:05:53 +0100 |
commit | 250e05a9656bf8888ac6e399791c46369e77d667 (patch) | |
tree | 1e1d2c21b2b63db97c0828ffc99a9c388f3adee4 /test/unit | |
parent | a1e5b8832b99d977fda326e914a5d6d834316f42 (diff) | |
download | lvm2-250e05a9656bf8888ac6e399791c46369e77d667.tar.gz |
makefiles: ensure test dir can run unit-test
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/Makefile b/test/unit/Makefile index 909cef296..0ba98ee22 100644 --- a/test/unit/Makefile +++ b/test/unit/Makefile @@ -41,9 +41,10 @@ CLEAN_TARGETS += $(UNIT_DEPENDS) $(UNIT_OBJECTS) \ test/unit/unit-test: $(UNIT_OBJECTS) lib/liblvm-internal.a libdaemon/client/libdaemonclient.a $(INTERNAL_LIBS) @echo " [LD] $@" $(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) \ - -o $@ $+ $(LIBS) $(DMEVENT_LIBS) $(SYSTEMD_LIBS) -lm -ldl -laio + -o $@ $+ $(DMEVENT_LIBS) $(SYSTEMD_LIBS) $(LIBS) -ldl -laio -.PHONEY: run-unit-test +.PHONEY: run-unit-test unit-test +unit-test: test/unit/unit-test run-unit-test: test/unit/unit-test @echo Running unit tests LD_LIBRARY_PATH=libdm test/unit/unit-test run |