2017-07-02 22:38:32 +03:00
#!/usr/bin/env bash
2011-09-25 00:54:35 +04:00
# Copyright (C) 2009-2011 Red Hat, Inc. All rights reserved.
2007-09-18 18:02:22 +04:00
#
# 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,
2016-01-21 13:49:46 +03:00
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2007-09-18 18:00:42 +04:00
2016-02-23 01:13:42 +03:00
SKIP_WITH_LVMLOCKD = 1
2015-10-27 17:10:06 +03:00
SKIP_WITH_LVMPOLLD = 1
2007-09-18 18:00:42 +04:00
2015-10-27 17:10:06 +03:00
. lib/inittest
2015-05-09 02:59:18 +03:00
2008-09-29 20:02:50 +04:00
lvm version
2007-09-18 18:00:42 +04:00
2015-09-08 15:11:06 +03:00
lvm pvmove --version| sed -n "1s/.*: *\([0-9][^ ]*\) .*/\1/p" | tee version
2007-09-18 18:00:42 +04:00
2008-09-29 20:02:50 +04:00
# ensure they are the same
2015-09-08 15:11:06 +03:00
diff -u version lib/version-expected
2007-09-18 18:00:42 +04:00
2015-11-26 20:11:40 +03:00
dmstats version | sed -n "1s/.*: *\([0-9][^ ]*\) .*/\1/p" | tee dmstats-version
# ensure dmstats version matches build
diff -u dmstats-version lib/dm-version-expected
2010-04-20 19:19:36 +04:00
# ensure we can create devices (uses dmsetup, etc)
aux prepare_devs 5
2017-07-06 20:41:25 +03:00
get_devs
2010-04-20 19:19:36 +04:00
2011-10-29 00:07:38 +04:00
# ensure we do not crash on a bug in config file
aux lvmconf 'log/prefix = 1""'
2017-07-06 20:41:25 +03:00
not lvs " ${ DEVICES [@] } "