diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-07-09 10:05:19 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-07-09 10:30:34 +0200 |
commit | 4a64bb9573bb3c54cfac0b4f588cd80dba01d60d (patch) | |
tree | 7b513f0a1980531f11907a8105add51459c7e42d | |
parent | 5cf0923e1840375d23c4fd6035b919613ce6573b (diff) | |
download | lvm2-4a64bb9573bb3c54cfac0b4f588cd80dba01d60d.tar.gz |
build: unit test Makefile update
Update makefile to link with more libs since now whole liblvm-internal.a
is linked-in and this library has futher dependencies.
Avoid including deps for run-unit-test.
Drop linking separate status.c as it's already linked via internal libs.
-rw-r--r-- | test/unit/Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/unit/Makefile b/test/unit/Makefile index 6fb640165..aeed2d76f 100644 --- a/test/unit/Makefile +++ b/test/unit/Makefile @@ -11,8 +11,6 @@ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA UNIT_SOURCE=\ - device_mapper/vdo/status.c \ - \ test/unit/activation-generator_t.c \ test/unit/bcache_t.c \ test/unit/bcache_utils_t.c \ @@ -36,7 +34,7 @@ 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) -lm -ldl -laio + -o $@ $+ $(LIBS) $(DMEVENT_LIBS) $(SYSTEMD_LIBS) -lm -ldl -laio .PHONEY: run-unit-test run-unit-test: test/unit/unit-test @@ -45,7 +43,7 @@ run-unit-test: test/unit/unit-test ifeq ("$(USE_TRACKING)","yes") ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov \ - help check check_local check_cluster check_lvmetad check_lvmpolld)) + help check check_local check_cluster check_lvmetad check_lvmpolld run-unit-test)) -include $(UNIT_DEPENDS) endif endif |