master - tests: testing lvm_lv_rename
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5a3c597fd599c21a0bb0c551c92393518d3e70b8 Commit: 5a3c597fd599c21a0bb0c551c92393518d3e70b8 Parent: e52d3167518f5ebbb0296b117a1266874978612f Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Jan 27 23:43:14 2011 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Aug 27 13:03:15 2012 +0200
tests: testing lvm_lv_rename
Test stacking of rename operation within one udev transaction.
--- test/api/Makefile.in | 4 +- test/api/lvtest.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++ test/api/lvtest.sh | 21 ++++++++++++++++ 3 files changed, 87 insertions(+), 2 deletions(-)
test/api/Makefile.in +2 -2
@@ -20,8 +20,8 @@ ifeq ("@APPLIB@", "yes") TARGETS += test SOURCES = test.c -TARGETS += vgtest.t percent.t pe_start.t -SOURCES2 = vgtest.c percent.c pe_start.c +TARGETS += vgtest.t percent.t pe_start.t lvtest.t +SOURCES2 = vgtest.c percent.c pe_start.c lvtest.c endif include $(top_builddir)/make.tmpl
test/api/lvtest.c new file +64 -0
64 lines not on this page · raw message
test/api/lvtest.sh new file +21 -0
@@ -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