Skip to contentSkip to conversation

master - tests: unit test for mirror status

PATCH Zdenek Kabelac 1 participant 1 message Dec 1, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c717ea5fc0b5096a1655313017611b4305e883d3
Commit:        c717ea5fc0b5096a1655313017611b4305e883d3
Parent:        fa87979004a0bbce2e4e3eacaeab0c4e0e0827eb
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Nov 30 20:54:52 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Dec 1 13:00:52 2015 +0100

tests: unit test for mirror status

---
 test/unit/Makefile.in  |    5 ++-
 test/unit/dmstatus_t.c |   72 ++++++++++++++++++++++++++++++++++++++++++++++++
 test/unit/run.c        |    1 +
 test/unit/units.h      |    1 +
 4 files changed, 77 insertions(+), 2 deletions(-)
test/unit/Makefile.in +3 -2
index 13d2f3c..87eaf2b 100644
@@ -1,4 +1,4 @@
-# Copyright (C) 2011-2013 Red Hat, Inc. All rights reserved.
+# Copyright (C) 2011-2015 Red Hat, Inc. All rights reserved.
 #
 # This file is part of LVM2.
 #
@@ -19,6 +19,7 @@ UNITS = \
 	bitset_t.c\
 	config_t.c\
 	dmlist_t.c\
+	dmstatus_t.c\
 	matcher_t.c\
 	string_t.c\
 	run.c
@@ -40,7 +41,7 @@ CFLAGS += @CUNIT_CFLAGS@
 
 check: unit
 
-$(TARGETS): $(OBJECTS)
+$(TARGETS): $(OBJECTS) $(top_builddir)/libdm/libdevmapper.$(LIB_SUFFIX)
 
 unit: $(TARGETS)
 	@echo Running unit tests
test/unit/dmstatus_t.c new file +72 -0

72 lines not on this page · raw message

test/unit/run.c +1 -0
index c46266d..5364107 100644
@@ -16,6 +16,7 @@ CU_SuiteInfo suites[] = {
 	USE(bitset),
 	USE(config),
 	USE(dmlist),
+	USE(dmstatus),
 	USE(regex),
 	USE(string),
 	CU_SUITE_INFO_NULL
test/unit/units.h +1 -0
index 4ae66b9..5eed535 100644
@@ -26,6 +26,7 @@
 DECL(bitset);
 DECL(config);
 DECL(dmlist);
+DECL(dmstatus);
 DECL(regex);
 DECL(string);