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