diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-01-27 23:43:14 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-08-27 13:03:15 +0200 |
commit | 5a3c597fd599c21a0bb0c551c92393518d3e70b8 (patch) | |
tree | db6dcffea4e9d2ce6707f95b1a6e8dfc5b707220 /test/api/lvtest.sh | |
parent | e52d3167518f5ebbb0296b117a1266874978612f (diff) | |
download | lvm2-5a3c597fd599c21a0bb0c551c92393518d3e70b8.tar.gz lvm2-5a3c597fd599c21a0bb0c551c92393518d3e70b8.tar.xz lvm2-5a3c597fd599c21a0bb0c551c92393518d3e70b8.zip |
tests: testing lvm_lv_rename
Test stacking of rename operation within one udev transaction.
Diffstat (limited to 'test/api/lvtest.sh')
-rw-r--r-- | test/api/lvtest.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/api/lvtest.sh b/test/api/lvtest.sh new file mode 100644 index 00000000..0b7684a2 --- /dev/null +++ b/test/api/lvtest.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# Copyright (C) 2011 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +. lib/test + +aux prepare_vg 1 + +lvcreate -n test -l 5 $vg +aux apitest lvtest $vg + +check lv_field $vg/test lv_name test |