Skip to contentSkip to conversation

master - tests: add unit-test

PATCH Zdenek Kabelac 1 participant 1 message May 12, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4c7565b65d0a02f6deedd37e1274b8646997fa71
Commit:        4c7565b65d0a02f6deedd37e1274b8646997fa71
Parent:        fa8d0b57660b9788d75b554eaeadb9725f522011
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat May 12 17:28:50 2018 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sat May 12 18:18:23 2018 +0200

tests: add unit-test

Allow unit-test to be run as part of standard 'make check'.

---
 test/unit/unit-test.sh |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
test/unit/unit-test.sh new file +23 -0
new file mode 100644
index 0000000..e8332d6
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Copyright (C) 2018 Red Hat, Inc. All rights reserved.
+#
+# This file is part of LVM2.
+#
+# This copyrighted material is made available to anyone wishing to use,
+# modify, copy, or redistribute it subject to the terms and conditions
+# of the GNU General Public License v.2.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+SKIP_WITH_LVMLOCKD=1
+SKIP_WITH_LVMPOLLD=1
+SKIP_WITH_LVMETAD=1
+SKIP_WITH_CLVMD=1
+
+SKIP_ROOT_DM_CHECK=1
+
+. lib/inittest
+
+aux unittest run