1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: rename test to inittest

We are getting into problem when we use 'test' for commands like
should/not/...

So avoid overloading test name and change it to inittest.
This commit is contained in:
Zdenek Kabelac 2014-06-06 17:40:04 +02:00
parent 9f68aadb74
commit 5c5177c37c
171 changed files with 170 additions and 170 deletions

View File

@ -156,7 +156,7 @@ lib/paths: $(srcdir)/Makefile.in .lib-dir-stamp Makefile
mv $@-t $@ mv $@-t $@
LIB = lib/not lib/invalid lib/fail lib/should lib/harness \ LIB = lib/not lib/invalid lib/fail lib/should lib/harness \
lib/check lib/aux lib/test lib/utils lib/get lib/lvm-wrapper \ lib/check lib/aux lib/inittest lib/utils lib/get lib/lvm-wrapper \
lib/paths lib/paths
CMDS = lvm $(shell cat $(top_builddir)/tools/.commands) CMDS = lvm $(shell cat $(top_builddir)/tools/.commands)

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
lvm version lvm version

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
# Just skip this test if minor is already in use... # Just skip this test if minor is already in use...
dmsetup info | tee info dmsetup info | tee info

View File

@ -16,7 +16,7 @@
# instead lvconvert --repair them?) # instead lvconvert --repair them?)
# - linear LVs with bits missing are not activated # - linear LVs with bits missing are not activated
. lib/test . lib/inittest
aux prepare_vg 2 aux prepare_vg 2

View File

@ -16,7 +16,7 @@
# instead lvconvert --repair them?) # instead lvconvert --repair them?)
# - linear LVs with bits missing are not activated # - linear LVs with bits missing are not activated
. lib/test . lib/inittest
aux prepare_vg 4 aux prepare_vg 4

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 3 aux prepare_vg 3

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
# Test skip activation flag -k|--setactivationskip # Test skip activation flag -k|--setactivationskip

View File

@ -13,7 +13,7 @@
export LVM_CLVMD_BINARY=clvmd export LVM_CLVMD_BINARY=clvmd
export LVM_BINARY=lvm export LVM_BINARY=lvm
. lib/test . lib/inittest
# only clvmd based test, skip otherwise # only clvmd based test, skip otherwise
test -e LOCAL_CLVMD || skip test -e LOCAL_CLVMD || skip

View File

@ -14,7 +14,7 @@
# to improve code coverage # to improve code coverage
# #
. lib/test . lib/inittest
aux prepare_pvs 5 aux prepare_pvs 5
get_devs get_devs

View File

@ -13,7 +13,7 @@
# test support of thin discards # test support of thin discards
# #
. lib/test . lib/inittest
# #
# Main # Main

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_dmeventd aux prepare_dmeventd

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
flatten() { flatten() {
cat > flatten.config cat > flatten.config

View File

@ -11,7 +11,7 @@
# Basic usage of zero target # Basic usage of zero target
. lib/test . lib/inittest
which md5sum || skip which md5sum || skip

View File

@ -11,7 +11,7 @@
test_description='Exercise fsadm filesystem resize' test_description='Exercise fsadm filesystem resize'
. lib/test . lib/inittest
aux prepare_vg 1 100 aux prepare_vg 1 100

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 3 12 aux prepare_vg 3 12

View File

@ -13,7 +13,7 @@
# tests functionality of lvs, pvs, vgs, *display tools # tests functionality of lvs, pvs, vgs, *display tools
# #
. lib/test . lib/inittest
aux prepare_devs 5 aux prepare_devs 5
get_devs get_devs

View File

@ -11,7 +11,7 @@
test_description='test some blocking / non-blocking multi-vg operations' test_description='test some blocking / non-blocking multi-vg operations'
. lib/test . lib/inittest
aux prepare_devs 3 aux prepare_devs 3
test -e LOCAL_CLVMD && skip test -e LOCAL_CLVMD && skip

View File

@ -12,7 +12,7 @@
# Test parallel use of lvm commands and check locks aren't dropped # Test parallel use of lvm commands and check locks aren't dropped
# RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1049296 # RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1049296
. lib/test . lib/inittest
which mkfs.ext3 || skip which mkfs.ext3 || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
# FIXME RESYNC doesn't work in cluster with exclusive activation # FIXME RESYNC doesn't work in cluster with exclusive activation
# seriously broken! # seriously broken!

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux have_raid 1 3 2 || skip aux have_raid 1 3 2 || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 4 aux prepare_vg 4

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
# Writemostly has been in every version since the begining # Writemostly has been in every version since the begining
# Device refresh in 1.5.1 upstream and 1.3.4 < x < 1.4.0 in RHEL6 # Device refresh in 1.5.1 upstream and 1.3.4 < x < 1.4.0 in RHEL6

View File

@ -11,7 +11,7 @@
# test activation race for raid's --syncaction check # test activation race for raid's --syncaction check
. lib/test . lib/inittest
# Proper mismatch count 1.5.2+ upstream, 1.3.5 < x < 1.4.0 in RHEL6 # Proper mismatch count 1.5.2+ upstream, 1.3.5 < x < 1.4.0 in RHEL6
aux have_raid 1 3 5 && aux have_raid 1 3 5 &&

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux have_thin 1 0 0 || skip aux have_thin 1 0 0 || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
log_name_to_count() { log_name_to_count() {
case "$1" in case "$1" in

View File

@ -11,7 +11,7 @@
# Demonstrate problem when upconverting and cutting leg in clvmd # Demonstrate problem when upconverting and cutting leg in clvmd
. lib/test . lib/inittest
aux prepare_pvs 3 aux prepare_pvs 3

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_pvs 5 10 aux prepare_pvs 5 10
# proper DEVRANGE needs to be set according to extent size # proper DEVRANGE needs to be set according to extent size

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
get_image_pvs() { get_image_pvs() {
local d local d

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
get_image_pvs() { get_image_pvs() {
local d local d

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
get_image_pvs() { get_image_pvs() {
local d local d

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
which mkfs.ext2 || skip which mkfs.ext2 || skip
aux mirror_recovery_works || skip aux mirror_recovery_works || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 4 aux prepare_vg 4
aux lvmconf 'allocation/maximise_cling = 0' aux lvmconf 'allocation/maximise_cling = 0'

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
which mkfs.ext3 || skip which mkfs.ext3 || skip
aux have_raid 1 3 0 || skip aux have_raid 1 3 0 || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux have_raid 1 3 0 || skip aux have_raid 1 3 0 || skip
aux raid456_replace_works || skip aux raid456_replace_works || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 6 aux prepare_vg 6
aux lvmconf 'allocation/maximise_cling = 0' aux lvmconf 'allocation/maximise_cling = 0'

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 5 aux prepare_vg 5
aux lvmconf 'allocation/maximise_cling = 0' aux lvmconf 'allocation/maximise_cling = 0'

View File

@ -12,7 +12,7 @@
# Test repairing of broken thin pool metadata # Test repairing of broken thin pool metadata
. lib/test . lib/inittest
which mkfs.ext2 || skip which mkfs.ext2 || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux mirror_recovery_works || skip aux mirror_recovery_works || skip
aux prepare_vg 5 aux prepare_vg 5

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux mirror_recovery_works || skip aux mirror_recovery_works || skip
aux prepare_vg 5 aux prepare_vg 5

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
recreate_vg_() recreate_vg_()
{ {

View File

@ -12,7 +12,7 @@
# Test various supported conversion of snapshot # Test various supported conversion of snapshot
. lib/test . lib/inittest
aux prepare_pvs 1 aux prepare_pvs 1

View File

@ -12,7 +12,7 @@
# Test conversion to thin external origin # Test conversion to thin external origin
. lib/test . lib/inittest
which mkfs.ext2 || skip which mkfs.ext2 || skip
which fsck || skip which fsck || skip

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux have_thin 1 0 0 || skip aux have_thin 1 0 0 || skip
aux have_raid 1 4 0 || skip aux have_raid 1 4 0 || skip

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
prepare_lvs() prepare_lvs()
{ {

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 4 aux prepare_vg 4

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux have_cache 1 3 0 || skip aux have_cache 1 3 0 || skip

View File

@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics' # 'Exercise some lvcreate diagnostics'
. lib/test . lib/inittest
# FIXME update test to make something useful on <16T # FIXME update test to make something useful on <16T
aux can_use_16T || skip aux can_use_16T || skip

View File

@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics' # 'Exercise some lvcreate diagnostics'
. lib/test . lib/inittest
# FIXME update test to make something useful on <16T # FIXME update test to make something useful on <16T
aux can_use_16T || skip aux can_use_16T || skip

View File

@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics' # 'Exercise some lvcreate diagnostics'
. lib/test . lib/inittest
# FIXME update test to make something useful on <16T # FIXME update test to make something useful on <16T
aux can_use_16T || skip aux can_use_16T || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 5 80 aux prepare_vg 5 80
aux lvmconf 'allocation/maximise_cling = 0' aux lvmconf 'allocation/maximise_cling = 0'
aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1' aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 2 aux prepare_vg 2
init_udev_transaction init_udev_transaction

View File

@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics' # 'Exercise some lvcreate diagnostics'
. lib/test . lib/inittest
cleanup_lvs() { cleanup_lvs() {
lvremove -ff $vg lvremove -ff $vg

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_pvs 3 aux prepare_pvs 3
aux lvmconf 'allocation/maximise_cling = 0' aux lvmconf 'allocation/maximise_cling = 0'

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
lv_devices() { lv_devices() {
test $3 -eq $(get lv_devices $1/$2 | wc -w) test $3 -eq $(get lv_devices $1/$2 | wc -w)

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
lv_devices() { lv_devices() {
test $3 -eq $(get lv_devices $1/$2 | wc -w) test $3 -eq $(get lv_devices $1/$2 | wc -w)

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 3 aux prepare_vg 3

View File

@ -11,7 +11,7 @@
# 'Exercise signature wiping during lvcreate' # 'Exercise signature wiping during lvcreate'
. lib/test . lib/inittest
init_lv_() { init_lv_() {
mkswap "$DM_DEV_DIR/$vg/$lv1" mkswap "$DM_DEV_DIR/$vg/$lv1"

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_pvs aux prepare_pvs

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 9 aux prepare_vg 9

View File

@ -12,7 +12,7 @@
# Test creation of thin snapshots using external origin # Test creation of thin snapshots using external origin
. lib/test . lib/inittest
which mkfs.ext2 || skip which mkfs.ext2 || skip
which fsck || skip which fsck || skip

View File

@ -13,7 +13,7 @@
# test support for non-power-of-2 thin chunk size # test support for non-power-of-2 thin chunk size
# #
. lib/test . lib/inittest
# #
# Main # Main

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
check_lv_field_modules_() check_lv_field_modules_()
{ {

View File

@ -13,7 +13,7 @@
# test currently needs to drop # test currently needs to drop
# 'return NULL' in _lv_create_an_lv after log_error("Can't create %s without using " # 'return NULL' in _lv_create_an_lv after log_error("Can't create %s without using "
. lib/test . lib/inittest
check_lv_field_modules_() check_lv_field_modules_()
{ {

View File

@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics' # 'Exercise some lvcreate diagnostics'
. lib/test . lib/inittest
aux prepare_pvs 4 aux prepare_pvs 4
aux pvcreate --metadatacopies 0 "$dev1" aux pvcreate --metadatacopies 0 "$dev1"

View File

@ -11,7 +11,7 @@
# 'Check extents percentage arguments' # 'Check extents percentage arguments'
. lib/test . lib/inittest
aux prepare_pvs 2 128 aux prepare_pvs 2 128
vgcreate $vg $(cat DEVICES) vgcreate $vg $(cat DEVICES)

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
extend() { extend() {
lvextend --use-policies --config "activation { snapshot_autoextend_threshold = $1 }" $vg/snap lvextend --use-policies --config "activation { snapshot_autoextend_threshold = $1 }" $vg/snap

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
which mkfs.ext2 || skip which mkfs.ext2 || skip

View File

@ -10,7 +10,7 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Test autoextension of thin metadata volume # Test autoextension of thin metadata volume
. lib/test . lib/inittest
meta_percent_() { meta_percent_() {
get lv_field $vg/pool metadata_percent | cut -d. -f1 get lv_field $vg/pool metadata_percent | cut -d. -f1

View File

@ -13,7 +13,7 @@
# tests lvm initialization, and especially negative tests of error paths # tests lvm initialization, and especially negative tests of error paths
# #
. lib/test . lib/inittest
aux prepare_devs 5 aux prepare_devs 5

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_pvs 5 aux prepare_pvs 5

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip
kill $(cat LOCAL_LVMETAD) kill $(cat LOCAL_LVMETAD)

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2 aux prepare_pvs 2

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip
aux prepare_devs 2 aux prepare_devs 2

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_CLVMD || skip test -e LOCAL_CLVMD || skip
aux prepare_vg 2 aux prepare_vg 2

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2 aux prepare_pvs 2

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_pvs 1 20000 aux prepare_pvs 1 20000
pvs $(cat DEVICES) | grep "$dev1" pvs $(cat DEVICES) | grep "$dev1"

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip
kill $(cat LOCAL_LVMETAD) kill $(cat LOCAL_LVMETAD)

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2 aux prepare_pvs 2

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_pvs 2 aux prepare_pvs 2

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
test -e LOCAL_LVMETAD || skip test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2 aux prepare_pvs 2

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 5 aux prepare_vg 5

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux have_raid 1 3 0 || skip aux have_raid 1 3 0 || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux have_raid 1 3 0 || skip aux have_raid 1 3 0 || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_pvs 3 22 aux prepare_pvs 3 22

View File

@ -10,7 +10,7 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Test resize of thin volume with external origin # Test resize of thin volume with external origin
. lib/test . lib/inittest
aux have_thin 1 2 0 || skip aux have_thin 1 2 0 || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux have_thin 1 10 0 || skip aux have_thin 1 10 0 || skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_vg 2 80 aux prepare_vg 2 80

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_devs 3 aux prepare_devs 3

View File

@ -11,7 +11,7 @@
# 'Test for proper escaping of strings in metadata (bz431474)' # 'Test for proper escaping of strings in metadata (bz431474)'
. lib/test . lib/inittest
# For udev impossible to create # For udev impossible to create
test "$LVM_TEST_DEVDIR" = "/dev" && skip test "$LVM_TEST_DEVDIR" = "/dev" && skip

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_devs 6 aux prepare_devs 6

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_devs 3 aux prepare_devs 3

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_devs 5 aux prepare_devs 5

View File

@ -12,7 +12,7 @@
test_description="check namings of mirrored LV" test_description="check namings of mirrored LV"
. lib/test . lib/inittest
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
# Utilities # Utilities

View File

@ -12,7 +12,7 @@
test_description="ensure that 'vgreduce --removemissing' works on mirrored LV" test_description="ensure that 'vgreduce --removemissing' works on mirrored LV"
. lib/test . lib/inittest
lv_is_on_ () lv_is_on_ ()
{ {

View File

@ -9,7 +9,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
# This test is not using any lvm command # This test is not using any lvm command
# so skip duplicate CLMVD and lvmetad test # so skip duplicate CLMVD and lvmetad test

View File

@ -10,7 +10,7 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
. lib/test . lib/inittest
aux prepare_devs 4 aux prepare_devs 4
pvcreate "$dev1" "$dev2" pvcreate "$dev1" "$dev2"

Some files were not shown because too many files have changed in this diff Show More