mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 10:25:13 +03:00
Add lvm2app.sh to nightly testsuite.
More tests to come but for now just call into vgtest. Fix warning in vgtest.c
This commit is contained in:
parent
5f1c57d008
commit
4071b6a401
@ -30,6 +30,7 @@ SUBDIRS += lib tools daemons libdm
|
|||||||
|
|
||||||
ifeq ("@APPLIB@", "yes")
|
ifeq ("@APPLIB@", "yes")
|
||||||
SUBDIRS += liblvm
|
SUBDIRS += liblvm
|
||||||
|
SUBDIRS += test/api
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(MAKECMDGOALS),distclean)
|
ifeq ($(MAKECMDGOALS),distclean)
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.52 -
|
Version 2.02.52 -
|
||||||
=================================
|
=================================
|
||||||
|
Add lvm2app.sh to nightly tests conditional upon configure --enable-applib.
|
||||||
Update lvm_vg_remove to require lvm_vg_write to commit remove to disk.
|
Update lvm_vg_remove to require lvm_vg_write to commit remove to disk.
|
||||||
Enforce an alphabetical lock ordering for vgname locks.
|
Enforce an alphabetical lock ordering for vgname locks.
|
||||||
Refactor vgsplit, vgmerge, and vgrename to obey vgname ordering rules.
|
Refactor vgsplit, vgmerge, and vgrename to obey vgname ordering rules.
|
||||||
|
@ -40,7 +40,7 @@ init.sh: Makefile.in .bin-dir-stamp bin/not bin/harness
|
|||||||
echo 'abs_top_builddir=$(abs_top_builddir)' >> $@-t
|
echo 'abs_top_builddir=$(abs_top_builddir)' >> $@-t
|
||||||
echo 'abs_top_srcdir=$(abs_top_builddir)' >> $@-t
|
echo 'abs_top_srcdir=$(abs_top_builddir)' >> $@-t
|
||||||
echo 'PATH=$(abs_top_builddir)/test/bin:$$PATH' >> $@-t
|
echo 'PATH=$(abs_top_builddir)/test/bin:$$PATH' >> $@-t
|
||||||
echo 'export LD_LIBRARY_PATH="$(abs_top_builddir)/libdm:$(abs_top_builddir)/dmeventd"' >> $@-t
|
echo 'export LD_LIBRARY_PATH="$(abs_top_builddir)/libdm:$(abs_top_builddir)/liblvm:$(abs_top_builddir)/dmeventd"' >> $@-t
|
||||||
echo 'abs_srcdir=$(abs_srcdir)' >> $@-t
|
echo 'abs_srcdir=$(abs_srcdir)' >> $@-t
|
||||||
echo 'abs_builddir=$(abs_builddir)' >> $@-t
|
echo 'abs_builddir=$(abs_builddir)' >> $@-t
|
||||||
echo 'export PATH' >> $@-t
|
echo 'export PATH' >> $@-t
|
||||||
@ -52,6 +52,10 @@ SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
|||||||
|
|
||||||
T = $(wildcard t-*.sh)
|
T = $(wildcard t-*.sh)
|
||||||
|
|
||||||
|
ifeq ("@APPLIB@", "yes")
|
||||||
|
T += lvm2app.sh
|
||||||
|
endif
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ uint64_t size = 1024;
|
|||||||
goto bad; \
|
goto bad; \
|
||||||
}
|
}
|
||||||
|
|
||||||
int init_vgtest(int argc, char *argv[])
|
static int init_vgtest(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
23
test/lvm2app.sh
Executable file
23
test/lvm2app.sh
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
# Copyright (C) 2008 Red Hat, Inc. All rights reserved.
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
|
||||||
|
#
|
||||||
|
# tests lvm2app library
|
||||||
|
#
|
||||||
|
|
||||||
|
. ./test-utils.sh
|
||||||
|
|
||||||
|
aux prepare_devs 2
|
||||||
|
|
||||||
|
pvcreate $dev1 $dev2
|
||||||
|
|
||||||
|
echo `pwd`
|
||||||
|
ls -lR `pwd`
|
||||||
|
../api/vgtest $vg1 $dev1 $dev2
|
Loading…
Reference in New Issue
Block a user