summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.in2
-rw-r--r--test/lib/inittest.sh (renamed from test/lib/test.sh)0
-rw-r--r--test/shell/000-basic.sh2
-rw-r--r--test/shell/activate-minor.sh2
-rw-r--r--test/shell/activate-missing-segment.sh2
-rw-r--r--test/shell/activate-missing.sh2
-rw-r--r--test/shell/activate-partial.sh2
-rw-r--r--test/shell/activation-skip.sh2
-rw-r--r--test/shell/clvmd-restart.sh2
-rw-r--r--test/shell/covercmd.sh2
-rw-r--r--test/shell/discards-thin.sh2
-rw-r--r--test/shell/dmeventd-restart.sh2
-rw-r--r--test/shell/dumpconfig.sh2
-rw-r--r--test/shell/error-usage.sh2
-rw-r--r--test/shell/fsadm.sh2
-rw-r--r--test/shell/inconsistent-metadata.sh2
-rw-r--r--test/shell/listings.sh2
-rw-r--r--test/shell/lock-blocking.sh2
-rw-r--r--test/shell/lock-parallel.sh2
-rw-r--r--test/shell/lvchange-mirror.sh2
-rw-r--r--test/shell/lvchange-partial-raid10.sh2
-rw-r--r--test/shell/lvchange-partial.sh2
-rw-r--r--test/shell/lvchange-raid.sh2
-rw-r--r--test/shell/lvchange-syncaction-raid.sh2
-rw-r--r--test/shell/lvchange-thin.sh2
-rw-r--r--test/shell/lvconvert-mirror-basic.sh2
-rw-r--r--test/shell/lvconvert-mirror-updown.sh2
-rw-r--r--test/shell/lvconvert-mirror.sh2
-rw-r--r--test/shell/lvconvert-raid.sh2
-rw-r--r--test/shell/lvconvert-raid10.sh2
-rw-r--r--test/shell/lvconvert-raid456.sh2
-rw-r--r--test/shell/lvconvert-repair-dmeventd.sh2
-rw-r--r--test/shell/lvconvert-repair-policy.sh2
-rw-r--r--test/shell/lvconvert-repair-raid-dmeventd.sh2
-rw-r--r--test/shell/lvconvert-repair-raid.sh2
-rw-r--r--test/shell/lvconvert-repair-replace.sh2
-rw-r--r--test/shell/lvconvert-repair-snapshot.sh2
-rw-r--r--test/shell/lvconvert-repair-thin.sh2
-rw-r--r--test/shell/lvconvert-repair-transient-dmeventd.sh2
-rw-r--r--test/shell/lvconvert-repair-transient.sh2
-rw-r--r--test/shell/lvconvert-repair.sh2
-rw-r--r--test/shell/lvconvert-snapshot.sh2
-rw-r--r--test/shell/lvconvert-thin-external.sh2
-rw-r--r--test/shell/lvconvert-thin-raid.sh2
-rw-r--r--test/shell/lvconvert-thin.sh2
-rw-r--r--test/shell/lvconvert-twostep.sh2
-rw-r--r--test/shell/lvcreate-cache.sh2
-rw-r--r--test/shell/lvcreate-large-raid.sh2
-rw-r--r--test/shell/lvcreate-large-raid10.sh2
-rw-r--r--test/shell/lvcreate-large.sh2
-rw-r--r--test/shell/lvcreate-mirror.sh2
-rw-r--r--test/shell/lvcreate-missing.sh2
-rw-r--r--test/shell/lvcreate-operation.sh2
-rw-r--r--test/shell/lvcreate-pvtags.sh2
-rw-r--r--test/shell/lvcreate-raid.sh2
-rw-r--r--test/shell/lvcreate-raid10.sh2
-rw-r--r--test/shell/lvcreate-repair.sh2
-rw-r--r--test/shell/lvcreate-signature-wiping.sh2
-rw-r--r--test/shell/lvcreate-small-snap.sh2
-rw-r--r--test/shell/lvcreate-striped-mirror.sh2
-rw-r--r--test/shell/lvcreate-thin-external.sh2
-rw-r--r--test/shell/lvcreate-thin-power2.sh2
-rw-r--r--test/shell/lvcreate-thin-snap.sh2
-rw-r--r--test/shell/lvcreate-thin.sh2
-rw-r--r--test/shell/lvcreate-usage.sh2
-rw-r--r--test/shell/lvextend-percent-extents.sh2
-rw-r--r--test/shell/lvextend-snapshot-dmeventd.sh2
-rw-r--r--test/shell/lvextend-snapshot-policy.sh2
-rw-r--r--test/shell/lvextend-thin-metadata-dmeventd.sh2
-rw-r--r--test/shell/lvm-init.sh2
-rw-r--r--test/shell/lvmcache-exercise.sh2
-rw-r--r--test/shell/lvmetad-ambiguous.sh2
-rw-r--r--test/shell/lvmetad-disabled.sh2
-rw-r--r--test/shell/lvmetad-dump.sh2
-rw-r--r--test/shell/lvmetad-lvm1.sh2
-rw-r--r--test/shell/lvmetad-no-cluster.sh2
-rw-r--r--test/shell/lvmetad-override.sh2
-rw-r--r--test/shell/lvmetad-pvs.sh2
-rw-r--r--test/shell/lvmetad-pvscan-cache.sh2
-rw-r--r--test/shell/lvmetad-pvscan-filter.sh2
-rw-r--r--test/shell/lvmetad-pvscan-nomda.sh2
-rw-r--r--test/shell/lvmetad-restart.sh2
-rw-r--r--test/shell/lvmetad-test.sh2
-rw-r--r--test/shell/lvmetad-warning.sh2
-rw-r--r--test/shell/lvresize-mirror.sh2
-rw-r--r--test/shell/lvresize-raid.sh2
-rw-r--r--test/shell/lvresize-raid10.sh2
-rw-r--r--test/shell/lvresize-rounding.sh2
-rw-r--r--test/shell/lvresize-thin-external-origin.sh2
-rw-r--r--test/shell/lvresize-thin-metadata.sh2
-rw-r--r--test/shell/lvresize-usage.sh2
-rw-r--r--test/shell/mda-rollback.sh2
-rw-r--r--test/shell/mdata-strings.sh2
-rw-r--r--test/shell/metadata-balance.sh2
-rw-r--r--test/shell/metadata-dirs.sh2
-rw-r--r--test/shell/metadata.sh2
-rw-r--r--test/shell/mirror-names.sh2
-rw-r--r--test/shell/mirror-vgreduce-removemissing.sh2
-rw-r--r--test/shell/name-mangling.sh2
-rw-r--r--test/shell/nomda-missing.sh2
-rw-r--r--test/shell/nomda-restoremissing.sh2
-rw-r--r--test/shell/orphan-ondisk.sh2
-rw-r--r--test/shell/pool-labels.sh2
-rw-r--r--test/shell/process-each-duplicate-vgnames.sh2
-rw-r--r--test/shell/process-each-lv.sh2
-rw-r--r--test/shell/process-each-vg.sh2
-rw-r--r--test/shell/profiles-thin.sh2
-rw-r--r--test/shell/profiles.sh2
-rw-r--r--test/shell/pv-duplicate-uuid.sh2
-rw-r--r--test/shell/pv-duplicate.sh2
-rw-r--r--test/shell/pv-min-size.sh2
-rw-r--r--test/shell/pv-range-overflow.sh2
-rw-r--r--test/shell/pvchange-usage.sh2
-rw-r--r--test/shell/pvcreate-bootloaderarea.sh2
-rw-r--r--test/shell/pvcreate-ff.sh2
-rw-r--r--test/shell/pvcreate-metadata0.sh2
-rw-r--r--test/shell/pvcreate-operation-md.sh2
-rw-r--r--test/shell/pvcreate-operation.sh2
-rw-r--r--test/shell/pvcreate-usage.sh2
-rw-r--r--test/shell/pvmove-all-segtypes.sh2
-rw-r--r--test/shell/pvmove-background.sh2
-rw-r--r--test/shell/pvmove-basic.sh2
-rw-r--r--test/shell/pvmove-cache-segtypes.sh2
-rw-r--r--test/shell/pvmove-raid-segtypes.sh2
-rw-r--r--test/shell/pvmove-restart.sh2
-rw-r--r--test/shell/pvmove-thin-segtypes.sh2
-rw-r--r--test/shell/pvremove-thin.sh2
-rw-r--r--test/shell/pvremove-usage.sh2
-rw-r--r--test/shell/read-ahead.sh2
-rw-r--r--test/shell/snapshot-autoumount-dmeventd.sh2
-rw-r--r--test/shell/snapshot-lvm1.sh2
-rw-r--r--test/shell/snapshot-maxsize.sh2
-rw-r--r--test/shell/snapshot-merge.sh2
-rw-r--r--test/shell/snapshot-reactivate.sh2
-rw-r--r--test/shell/snapshot-usage.sh2
-rw-r--r--test/shell/snapshots-of-mirrors.sh2
-rw-r--r--test/shell/stray-device-node.sh2
-rw-r--r--test/shell/tags.sh2
-rw-r--r--test/shell/test-partition.sh2
-rw-r--r--test/shell/thin-autoumount-dmeventd.sh2
-rw-r--r--test/shell/thin-defaults.sh2
-rw-r--r--test/shell/thin-merge.sh2
-rw-r--r--test/shell/thin-restore.sh2
-rw-r--r--test/shell/thin-vglock.sh2
-rw-r--r--test/shell/topology-support.sh2
-rw-r--r--test/shell/unknown-segment.sh2
-rw-r--r--test/shell/unlost-pv.sh2
-rw-r--r--test/shell/vg-name-from-env.sh2
-rw-r--r--test/shell/vgcfgbackup-usage.sh2
-rw-r--r--test/shell/vgchange-many.sh2
-rw-r--r--test/shell/vgchange-maxlv.sh2
-rw-r--r--test/shell/vgchange-partial.sh2
-rw-r--r--test/shell/vgchange-sysinit.sh2
-rw-r--r--test/shell/vgchange-usage.sh2
-rw-r--r--test/shell/vgck.sh2
-rw-r--r--test/shell/vgcreate-usage.sh2
-rw-r--r--test/shell/vgextend-restoremissing.sh2
-rw-r--r--test/shell/vgextend-usage.sh2
-rw-r--r--test/shell/vgimportclone.sh2
-rw-r--r--test/shell/vgmerge-operation.sh2
-rw-r--r--test/shell/vgmerge-usage.sh2
-rw-r--r--test/shell/vgreduce-removemissing-snapshot.sh2
-rw-r--r--test/shell/vgreduce-usage.sh2
-rw-r--r--test/shell/vgremove-corrupt-vg.sh2
-rw-r--r--test/shell/vgrename-usage.sh2
-rw-r--r--test/shell/vgsplit-operation.sh2
-rw-r--r--test/shell/vgsplit-raid.sh2
-rw-r--r--test/shell/vgsplit-stacked.sh2
-rw-r--r--test/shell/vgsplit-thin.sh2
-rw-r--r--test/shell/vgsplit-usage.sh2
-rw-r--r--test/shell/zero-usage.sh2
171 files changed, 170 insertions, 170 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 5ac045fe4..46aeaec5e 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -156,7 +156,7 @@ lib/paths: $(srcdir)/Makefile.in .lib-dir-stamp Makefile
mv $@-t $@
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
CMDS = lvm $(shell cat $(top_builddir)/tools/.commands)
diff --git a/test/lib/test.sh b/test/lib/inittest.sh
index 731cd7afd..731cd7afd 100644
--- a/test/lib/test.sh
+++ b/test/lib/inittest.sh
diff --git a/test/shell/000-basic.sh b/test/shell/000-basic.sh
index 83e6efea2..7ad4d9f05 100644
--- a/test/shell/000-basic.sh
+++ b/test/shell/000-basic.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
lvm version
diff --git a/test/shell/activate-minor.sh b/test/shell/activate-minor.sh
index 1cebda414..1c5386c15 100644
--- a/test/shell/activate-minor.sh
+++ b/test/shell/activate-minor.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
# Just skip this test if minor is already in use...
dmsetup info | tee info
diff --git a/test/shell/activate-missing-segment.sh b/test/shell/activate-missing-segment.sh
index afda20f5e..5f43c7269 100644
--- a/test/shell/activate-missing-segment.sh
+++ b/test/shell/activate-missing-segment.sh
@@ -16,7 +16,7 @@
# instead lvconvert --repair them?)
# - linear LVs with bits missing are not activated
-. lib/test
+. lib/inittest
aux prepare_vg 2
diff --git a/test/shell/activate-missing.sh b/test/shell/activate-missing.sh
index fd57e1aab..8e2ff1e7a 100644
--- a/test/shell/activate-missing.sh
+++ b/test/shell/activate-missing.sh
@@ -16,7 +16,7 @@
# instead lvconvert --repair them?)
# - linear LVs with bits missing are not activated
-. lib/test
+. lib/inittest
aux prepare_vg 4
diff --git a/test/shell/activate-partial.sh b/test/shell/activate-partial.sh
index cbfa43387..0b5d1b649 100644
--- a/test/shell/activate-partial.sh
+++ b/test/shell/activate-partial.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 3
diff --git a/test/shell/activation-skip.sh b/test/shell/activation-skip.sh
index 76680b23e..ca562a7cd 100644
--- a/test/shell/activation-skip.sh
+++ b/test/shell/activation-skip.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
# Test skip activation flag -k|--setactivationskip
diff --git a/test/shell/clvmd-restart.sh b/test/shell/clvmd-restart.sh
index b288ad878..4a9f12e6b 100644
--- a/test/shell/clvmd-restart.sh
+++ b/test/shell/clvmd-restart.sh
@@ -13,7 +13,7 @@
export LVM_CLVMD_BINARY=clvmd
export LVM_BINARY=lvm
-. lib/test
+. lib/inittest
# only clvmd based test, skip otherwise
test -e LOCAL_CLVMD || skip
diff --git a/test/shell/covercmd.sh b/test/shell/covercmd.sh
index d7dde5bdb..c84c967de 100644
--- a/test/shell/covercmd.sh
+++ b/test/shell/covercmd.sh
@@ -14,7 +14,7 @@
# to improve code coverage
#
-. lib/test
+. lib/inittest
aux prepare_pvs 5
get_devs
diff --git a/test/shell/discards-thin.sh b/test/shell/discards-thin.sh
index 525f1067a..a2cac5219 100644
--- a/test/shell/discards-thin.sh
+++ b/test/shell/discards-thin.sh
@@ -13,7 +13,7 @@
# test support of thin discards
#
-. lib/test
+. lib/inittest
#
# Main
diff --git a/test/shell/dmeventd-restart.sh b/test/shell/dmeventd-restart.sh
index e27d4262a..366b4d2a1 100644
--- a/test/shell/dmeventd-restart.sh
+++ b/test/shell/dmeventd-restart.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_dmeventd
diff --git a/test/shell/dumpconfig.sh b/test/shell/dumpconfig.sh
index a16f7532d..f52157fc7 100644
--- a/test/shell/dumpconfig.sh
+++ b/test/shell/dumpconfig.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
flatten() {
cat > flatten.config
diff --git a/test/shell/error-usage.sh b/test/shell/error-usage.sh
index a7e359365..61e282b66 100644
--- a/test/shell/error-usage.sh
+++ b/test/shell/error-usage.sh
@@ -11,7 +11,7 @@
# Basic usage of zero target
-. lib/test
+. lib/inittest
which md5sum || skip
diff --git a/test/shell/fsadm.sh b/test/shell/fsadm.sh
index 04b659f2c..612d2b7ea 100644
--- a/test/shell/fsadm.sh
+++ b/test/shell/fsadm.sh
@@ -11,7 +11,7 @@
test_description='Exercise fsadm filesystem resize'
-. lib/test
+. lib/inittest
aux prepare_vg 1 100
diff --git a/test/shell/inconsistent-metadata.sh b/test/shell/inconsistent-metadata.sh
index 06bd310af..69d1f3328 100644
--- a/test/shell/inconsistent-metadata.sh
+++ b/test/shell/inconsistent-metadata.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 3 12
diff --git a/test/shell/listings.sh b/test/shell/listings.sh
index d916a4143..fbd4af72a 100644
--- a/test/shell/listings.sh
+++ b/test/shell/listings.sh
@@ -13,7 +13,7 @@
# tests functionality of lvs, pvs, vgs, *display tools
#
-. lib/test
+. lib/inittest
aux prepare_devs 5
get_devs
diff --git a/test/shell/lock-blocking.sh b/test/shell/lock-blocking.sh
index aaf2e0bd1..e05fa5068 100644
--- a/test/shell/lock-blocking.sh
+++ b/test/shell/lock-blocking.sh
@@ -11,7 +11,7 @@
test_description='test some blocking / non-blocking multi-vg operations'
-. lib/test
+. lib/inittest
aux prepare_devs 3
test -e LOCAL_CLVMD && skip
diff --git a/test/shell/lock-parallel.sh b/test/shell/lock-parallel.sh
index e7d15effe..993175fc9 100644
--- a/test/shell/lock-parallel.sh
+++ b/test/shell/lock-parallel.sh
@@ -12,7 +12,7 @@
# Test parallel use of lvm commands and check locks aren't dropped
# RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1049296
-. lib/test
+. lib/inittest
which mkfs.ext3 || skip
diff --git a/test/shell/lvchange-mirror.sh b/test/shell/lvchange-mirror.sh
index 37a6e1be2..f28e486f6 100644
--- a/test/shell/lvchange-mirror.sh
+++ b/test/shell/lvchange-mirror.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
# FIXME RESYNC doesn't work in cluster with exclusive activation
# seriously broken!
diff --git a/test/shell/lvchange-partial-raid10.sh b/test/shell/lvchange-partial-raid10.sh
index 3c112bb59..8014abd40 100644
--- a/test/shell/lvchange-partial-raid10.sh
+++ b/test/shell/lvchange-partial-raid10.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux have_raid 1 3 2 || skip
diff --git a/test/shell/lvchange-partial.sh b/test/shell/lvchange-partial.sh
index 3db1b4f1e..c65c07b87 100644
--- a/test/shell/lvchange-partial.sh
+++ b/test/shell/lvchange-partial.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 4
diff --git a/test/shell/lvchange-raid.sh b/test/shell/lvchange-raid.sh
index a229154ab..e35f4dec3 100644
--- a/test/shell/lvchange-raid.sh
+++ b/test/shell/lvchange-raid.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
# 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
diff --git a/test/shell/lvchange-syncaction-raid.sh b/test/shell/lvchange-syncaction-raid.sh
index b5fdfb47b..18af83f78 100644
--- a/test/shell/lvchange-syncaction-raid.sh
+++ b/test/shell/lvchange-syncaction-raid.sh
@@ -11,7 +11,7 @@
# 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
aux have_raid 1 3 5 &&
diff --git a/test/shell/lvchange-thin.sh b/test/shell/lvchange-thin.sh
index c6fd813c3..cb9be53cc 100644
--- a/test/shell/lvchange-thin.sh
+++ b/test/shell/lvchange-thin.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux have_thin 1 0 0 || skip
diff --git a/test/shell/lvconvert-mirror-basic.sh b/test/shell/lvconvert-mirror-basic.sh
index 28258b240..6fcff7075 100644
--- a/test/shell/lvconvert-mirror-basic.sh
+++ b/test/shell/lvconvert-mirror-basic.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
log_name_to_count() {
case "$1" in
diff --git a/test/shell/lvconvert-mirror-updown.sh b/test/shell/lvconvert-mirror-updown.sh
index 3b3073852..18618fd28 100644
--- a/test/shell/lvconvert-mirror-updown.sh
+++ b/test/shell/lvconvert-mirror-updown.sh
@@ -11,7 +11,7 @@
# Demonstrate problem when upconverting and cutting leg in clvmd
-. lib/test
+. lib/inittest
aux prepare_pvs 3
diff --git a/test/shell/lvconvert-mirror.sh b/test/shell/lvconvert-mirror.sh
index 8c0c72e1a..d8f057a9b 100644
--- a/test/shell/lvconvert-mirror.sh
+++ b/test/shell/lvconvert-mirror.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_pvs 5 10
# proper DEVRANGE needs to be set according to extent size
diff --git a/test/shell/lvconvert-raid.sh b/test/shell/lvconvert-raid.sh
index e17d90eaa..6f17303b5 100644
--- a/test/shell/lvconvert-raid.sh
+++ b/test/shell/lvconvert-raid.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
get_image_pvs() {
local d
diff --git a/test/shell/lvconvert-raid10.sh b/test/shell/lvconvert-raid10.sh
index e9b0ef8f6..c4b92f18d 100644
--- a/test/shell/lvconvert-raid10.sh
+++ b/test/shell/lvconvert-raid10.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
get_image_pvs() {
local d
diff --git a/test/shell/lvconvert-raid456.sh b/test/shell/lvconvert-raid456.sh
index 38f8ed596..1ead12827 100644
--- a/test/shell/lvconvert-raid456.sh
+++ b/test/shell/lvconvert-raid456.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
get_image_pvs() {
local d
diff --git a/test/shell/lvconvert-repair-dmeventd.sh b/test/shell/lvconvert-repair-dmeventd.sh
index 472c81261..eed08197c 100644
--- a/test/shell/lvconvert-repair-dmeventd.sh
+++ b/test/shell/lvconvert-repair-dmeventd.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
which mkfs.ext2 || skip
aux mirror_recovery_works || skip
diff --git a/test/shell/lvconvert-repair-policy.sh b/test/shell/lvconvert-repair-policy.sh
index 9d71b6678..ace52fca0 100644
--- a/test/shell/lvconvert-repair-policy.sh
+++ b/test/shell/lvconvert-repair-policy.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 4
aux lvmconf 'allocation/maximise_cling = 0'
diff --git a/test/shell/lvconvert-repair-raid-dmeventd.sh b/test/shell/lvconvert-repair-raid-dmeventd.sh
index 6766faab5..eeb424ef0 100644
--- a/test/shell/lvconvert-repair-raid-dmeventd.sh
+++ b/test/shell/lvconvert-repair-raid-dmeventd.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
which mkfs.ext3 || skip
aux have_raid 1 3 0 || skip
diff --git a/test/shell/lvconvert-repair-raid.sh b/test/shell/lvconvert-repair-raid.sh
index 8ba27b85e..4f0175a09 100644
--- a/test/shell/lvconvert-repair-raid.sh
+++ b/test/shell/lvconvert-repair-raid.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux have_raid 1 3 0 || skip
aux raid456_replace_works || skip
diff --git a/test/shell/lvconvert-repair-replace.sh b/test/shell/lvconvert-repair-replace.sh
index c02d2accc..3c0dc53e6 100644
--- a/test/shell/lvconvert-repair-replace.sh
+++ b/test/shell/lvconvert-repair-replace.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 6
aux lvmconf 'allocation/maximise_cling = 0'
diff --git a/test/shell/lvconvert-repair-snapshot.sh b/test/shell/lvconvert-repair-snapshot.sh
index 77fd217d7..473d56160 100644
--- a/test/shell/lvconvert-repair-snapshot.sh
+++ b/test/shell/lvconvert-repair-snapshot.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 5
aux lvmconf 'allocation/maximise_cling = 0'
diff --git a/test/shell/lvconvert-repair-thin.sh b/test/shell/lvconvert-repair-thin.sh
index 8b0f117f0..6aa559041 100644
--- a/test/shell/lvconvert-repair-thin.sh
+++ b/test/shell/lvconvert-repair-thin.sh
@@ -12,7 +12,7 @@
# Test repairing of broken thin pool metadata
-. lib/test
+. lib/inittest
which mkfs.ext2 || skip
diff --git a/test/shell/lvconvert-repair-transient-dmeventd.sh b/test/shell/lvconvert-repair-transient-dmeventd.sh
index 1cda2154b..5347d8803 100644
--- a/test/shell/lvconvert-repair-transient-dmeventd.sh
+++ b/test/shell/lvconvert-repair-transient-dmeventd.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux mirror_recovery_works || skip
aux prepare_vg 5
diff --git a/test/shell/lvconvert-repair-transient.sh b/test/shell/lvconvert-repair-transient.sh
index 21df1ef5f..99018ef4d 100644
--- a/test/shell/lvconvert-repair-transient.sh
+++ b/test/shell/lvconvert-repair-transient.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux mirror_recovery_works || skip
aux prepare_vg 5
diff --git a/test/shell/lvconvert-repair.sh b/test/shell/lvconvert-repair.sh
index db2471052..91437a6fd 100644
--- a/test/shell/lvconvert-repair.sh
+++ b/test/shell/lvconvert-repair.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
recreate_vg_()
{
diff --git a/test/shell/lvconvert-snapshot.sh b/test/shell/lvconvert-snapshot.sh
index e38d69b71..f59bb7bd2 100644
--- a/test/shell/lvconvert-snapshot.sh
+++ b/test/shell/lvconvert-snapshot.sh
@@ -12,7 +12,7 @@
# Test various supported conversion of snapshot
-. lib/test
+. lib/inittest
aux prepare_pvs 1
diff --git a/test/shell/lvconvert-thin-external.sh b/test/shell/lvconvert-thin-external.sh
index 5d52e60a7..676851e2f 100644
--- a/test/shell/lvconvert-thin-external.sh
+++ b/test/shell/lvconvert-thin-external.sh
@@ -12,7 +12,7 @@
# Test conversion to thin external origin
-. lib/test
+. lib/inittest
which mkfs.ext2 || skip
which fsck || skip
diff --git a/test/shell/lvconvert-thin-raid.sh b/test/shell/lvconvert-thin-raid.sh
index ae3d2ef33..7e5efbd6c 100644
--- a/test/shell/lvconvert-thin-raid.sh
+++ b/test/shell/lvconvert-thin-raid.sh
@@ -10,7 +10,7 @@
# 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
+. lib/inittest
aux have_thin 1 0 0 || skip
aux have_raid 1 4 0 || skip
diff --git a/test/shell/lvconvert-thin.sh b/test/shell/lvconvert-thin.sh
index 2ce43b8aa..4a200bb59 100644
--- a/test/shell/lvconvert-thin.sh
+++ b/test/shell/lvconvert-thin.sh
@@ -10,7 +10,7 @@
# 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
+. lib/inittest
prepare_lvs()
{
diff --git a/test/shell/lvconvert-twostep.sh b/test/shell/lvconvert-twostep.sh
index 6b1dd51b7..788b751dd 100644
--- a/test/shell/lvconvert-twostep.sh
+++ b/test/shell/lvconvert-twostep.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 4
diff --git a/test/shell/lvcreate-cache.sh b/test/shell/lvcreate-cache.sh
index 1c438e7ed..c4b4a7500 100644
--- a/test/shell/lvcreate-cache.sh
+++ b/test/shell/lvcreate-cache.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux have_cache 1 3 0 || skip
diff --git a/test/shell/lvcreate-large-raid.sh b/test/shell/lvcreate-large-raid.sh
index 57a776539..286b06821 100644
--- a/test/shell/lvcreate-large-raid.sh
+++ b/test/shell/lvcreate-large-raid.sh
@@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics'
-. lib/test
+. lib/inittest
# FIXME update test to make something useful on <16T
aux can_use_16T || skip
diff --git a/test/shell/lvcreate-large-raid10.sh b/test/shell/lvcreate-large-raid10.sh
index 5a15ee073..3c6ddcf96 100644
--- a/test/shell/lvcreate-large-raid10.sh
+++ b/test/shell/lvcreate-large-raid10.sh
@@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics'
-. lib/test
+. lib/inittest
# FIXME update test to make something useful on <16T
aux can_use_16T || skip
diff --git a/test/shell/lvcreate-large.sh b/test/shell/lvcreate-large.sh
index 401191b0f..24fccb110 100644
--- a/test/shell/lvcreate-large.sh
+++ b/test/shell/lvcreate-large.sh
@@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics'
-. lib/test
+. lib/inittest
# FIXME update test to make something useful on <16T
aux can_use_16T || skip
diff --git a/test/shell/lvcreate-mirror.sh b/test/shell/lvcreate-mirror.sh
index 6b540811f..a15112695 100644
--- a/test/shell/lvcreate-mirror.sh
+++ b/test/shell/lvcreate-mirror.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 5 80
aux lvmconf 'allocation/maximise_cling = 0'
aux lvmconf 'allocation/mirror_logs_require_separate_pvs = 1'
diff --git a/test/shell/lvcreate-missing.sh b/test/shell/lvcreate-missing.sh
index dfc6e6504..2b740525d 100644
--- a/test/shell/lvcreate-missing.sh
+++ b/test/shell/lvcreate-missing.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 2
init_udev_transaction
diff --git a/test/shell/lvcreate-operation.sh b/test/shell/lvcreate-operation.sh
index 2aa96d228..fac721924 100644
--- a/test/shell/lvcreate-operation.sh
+++ b/test/shell/lvcreate-operation.sh
@@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics'
-. lib/test
+. lib/inittest
cleanup_lvs() {
lvremove -ff $vg
diff --git a/test/shell/lvcreate-pvtags.sh b/test/shell/lvcreate-pvtags.sh
index 1df07fc82..b7c814f75 100644
--- a/test/shell/lvcreate-pvtags.sh
+++ b/test/shell/lvcreate-pvtags.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_pvs 3
aux lvmconf 'allocation/maximise_cling = 0'
diff --git a/test/shell/lvcreate-raid.sh b/test/shell/lvcreate-raid.sh
index 76a606f81..6bbc3fe48 100644
--- a/test/shell/lvcreate-raid.sh
+++ b/test/shell/lvcreate-raid.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
lv_devices() {
test $3 -eq $(get lv_devices $1/$2 | wc -w)
diff --git a/test/shell/lvcreate-raid10.sh b/test/shell/lvcreate-raid10.sh
index ae02ab2c1..e334bd14a 100644
--- a/test/shell/lvcreate-raid10.sh
+++ b/test/shell/lvcreate-raid10.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
lv_devices() {
test $3 -eq $(get lv_devices $1/$2 | wc -w)
diff --git a/test/shell/lvcreate-repair.sh b/test/shell/lvcreate-repair.sh
index 8971536e7..169056547 100644
--- a/test/shell/lvcreate-repair.sh
+++ b/test/shell/lvcreate-repair.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 3
diff --git a/test/shell/lvcreate-signature-wiping.sh b/test/shell/lvcreate-signature-wiping.sh
index f45a37230..388c54268 100644
--- a/test/shell/lvcreate-signature-wiping.sh
+++ b/test/shell/lvcreate-signature-wiping.sh
@@ -11,7 +11,7 @@
# 'Exercise signature wiping during lvcreate'
-. lib/test
+. lib/inittest
init_lv_() {
mkswap "$DM_DEV_DIR/$vg/$lv1"
diff --git a/test/shell/lvcreate-small-snap.sh b/test/shell/lvcreate-small-snap.sh
index 33532db5a..b29c5f8f8 100644
--- a/test/shell/lvcreate-small-snap.sh
+++ b/test/shell/lvcreate-small-snap.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_pvs
diff --git a/test/shell/lvcreate-striped-mirror.sh b/test/shell/lvcreate-striped-mirror.sh
index f02c65864..eaa7fb859 100644
--- a/test/shell/lvcreate-striped-mirror.sh
+++ b/test/shell/lvcreate-striped-mirror.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 9
diff --git a/test/shell/lvcreate-thin-external.sh b/test/shell/lvcreate-thin-external.sh
index 1e5b333d9..74e5521fa 100644
--- a/test/shell/lvcreate-thin-external.sh
+++ b/test/shell/lvcreate-thin-external.sh
@@ -12,7 +12,7 @@
# Test creation of thin snapshots using external origin
-. lib/test
+. lib/inittest
which mkfs.ext2 || skip
which fsck || skip
diff --git a/test/shell/lvcreate-thin-power2.sh b/test/shell/lvcreate-thin-power2.sh
index e1effa4ae..ed62db3f8 100644
--- a/test/shell/lvcreate-thin-power2.sh
+++ b/test/shell/lvcreate-thin-power2.sh
@@ -13,7 +13,7 @@
# test support for non-power-of-2 thin chunk size
#
-. lib/test
+. lib/inittest
#
# Main
diff --git a/test/shell/lvcreate-thin-snap.sh b/test/shell/lvcreate-thin-snap.sh
index 6a6a8426f..6f29a28be 100644
--- a/test/shell/lvcreate-thin-snap.sh
+++ b/test/shell/lvcreate-thin-snap.sh
@@ -10,7 +10,7 @@
# 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
+. lib/inittest
check_lv_field_modules_()
{
diff --git a/test/shell/lvcreate-thin.sh b/test/shell/lvcreate-thin.sh
index 7ea4fcf79..971265229 100644
--- a/test/shell/lvcreate-thin.sh
+++ b/test/shell/lvcreate-thin.sh
@@ -13,7 +13,7 @@
# test currently needs to drop
# 'return NULL' in _lv_create_an_lv after log_error("Can't create %s without using "
-. lib/test
+. lib/inittest
check_lv_field_modules_()
{
diff --git a/test/shell/lvcreate-usage.sh b/test/shell/lvcreate-usage.sh
index 2a0e0a6f5..7ae6d258f 100644
--- a/test/shell/lvcreate-usage.sh
+++ b/test/shell/lvcreate-usage.sh
@@ -11,7 +11,7 @@
# 'Exercise some lvcreate diagnostics'
-. lib/test
+. lib/inittest
aux prepare_pvs 4
aux pvcreate --metadatacopies 0 "$dev1"
diff --git a/test/shell/lvextend-percent-extents.sh b/test/shell/lvextend-percent-extents.sh
index 34654a06c..9b5dc5d09 100644
--- a/test/shell/lvextend-percent-extents.sh
+++ b/test/shell/lvextend-percent-extents.sh
@@ -11,7 +11,7 @@
# 'Check extents percentage arguments'
-. lib/test
+. lib/inittest
aux prepare_pvs 2 128
vgcreate $vg $(cat DEVICES)
diff --git a/test/shell/lvextend-snapshot-dmeventd.sh b/test/shell/lvextend-snapshot-dmeventd.sh
index 2bf552d91..af8a927f2 100644
--- a/test/shell/lvextend-snapshot-dmeventd.sh
+++ b/test/shell/lvextend-snapshot-dmeventd.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
extend() {
lvextend --use-policies --config "activation { snapshot_autoextend_threshold = $1 }" $vg/snap
diff --git a/test/shell/lvextend-snapshot-policy.sh b/test/shell/lvextend-snapshot-policy.sh
index f396765a3..210e2fb42 100644
--- a/test/shell/lvextend-snapshot-policy.sh
+++ b/test/shell/lvextend-snapshot-policy.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
which mkfs.ext2 || skip
diff --git a/test/shell/lvextend-thin-metadata-dmeventd.sh b/test/shell/lvextend-thin-metadata-dmeventd.sh
index 6e03d9d1c..44144c67d 100644
--- a/test/shell/lvextend-thin-metadata-dmeventd.sh
+++ b/test/shell/lvextend-thin-metadata-dmeventd.sh
@@ -10,7 +10,7 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Test autoextension of thin metadata volume
-. lib/test
+. lib/inittest
meta_percent_() {
get lv_field $vg/pool metadata_percent | cut -d. -f1
diff --git a/test/shell/lvm-init.sh b/test/shell/lvm-init.sh
index 8eb7814ff..c3f7ecfd4 100644
--- a/test/shell/lvm-init.sh
+++ b/test/shell/lvm-init.sh
@@ -13,7 +13,7 @@
# tests lvm initialization, and especially negative tests of error paths
#
-. lib/test
+. lib/inittest
aux prepare_devs 5
diff --git a/test/shell/lvmcache-exercise.sh b/test/shell/lvmcache-exercise.sh
index b7c584ba3..2aaf65095 100644
--- a/test/shell/lvmcache-exercise.sh
+++ b/test/shell/lvmcache-exercise.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_pvs 5
diff --git a/test/shell/lvmetad-ambiguous.sh b/test/shell/lvmetad-ambiguous.sh
index 6ff055ada..2e7c6c515 100644
--- a/test/shell/lvmetad-ambiguous.sh
+++ b/test/shell/lvmetad-ambiguous.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
diff --git a/test/shell/lvmetad-disabled.sh b/test/shell/lvmetad-disabled.sh
index c344d7fb7..acb5f82ed 100644
--- a/test/shell/lvmetad-disabled.sh
+++ b/test/shell/lvmetad-disabled.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
kill $(cat LOCAL_LVMETAD)
diff --git a/test/shell/lvmetad-dump.sh b/test/shell/lvmetad-dump.sh
index 9c9cd2b3d..0c3df3bcb 100644
--- a/test/shell/lvmetad-dump.sh
+++ b/test/shell/lvmetad-dump.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2
diff --git a/test/shell/lvmetad-lvm1.sh b/test/shell/lvmetad-lvm1.sh
index dcff55b2e..3745dd020 100644
--- a/test/shell/lvmetad-lvm1.sh
+++ b/test/shell/lvmetad-lvm1.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
aux prepare_devs 2
diff --git a/test/shell/lvmetad-no-cluster.sh b/test/shell/lvmetad-no-cluster.sh
index 0c53822ab..85c1ea920 100644
--- a/test/shell/lvmetad-no-cluster.sh
+++ b/test/shell/lvmetad-no-cluster.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_CLVMD || skip
aux prepare_vg 2
diff --git a/test/shell/lvmetad-override.sh b/test/shell/lvmetad-override.sh
index fe11658f7..ff4ad1810 100644
--- a/test/shell/lvmetad-override.sh
+++ b/test/shell/lvmetad-override.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2
diff --git a/test/shell/lvmetad-pvs.sh b/test/shell/lvmetad-pvs.sh
index 80b421c4b..7f254905f 100644
--- a/test/shell/lvmetad-pvs.sh
+++ b/test/shell/lvmetad-pvs.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_pvs 1 20000
pvs $(cat DEVICES) | grep "$dev1"
diff --git a/test/shell/lvmetad-pvscan-cache.sh b/test/shell/lvmetad-pvscan-cache.sh
index 7b161aa3d..d309e8291 100644
--- a/test/shell/lvmetad-pvscan-cache.sh
+++ b/test/shell/lvmetad-pvscan-cache.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
diff --git a/test/shell/lvmetad-pvscan-filter.sh b/test/shell/lvmetad-pvscan-filter.sh
index 73690a0c6..a3af1b20b 100644
--- a/test/shell/lvmetad-pvscan-filter.sh
+++ b/test/shell/lvmetad-pvscan-filter.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
diff --git a/test/shell/lvmetad-pvscan-nomda.sh b/test/shell/lvmetad-pvscan-nomda.sh
index 04c9c6b03..c55cafbf9 100644
--- a/test/shell/lvmetad-pvscan-nomda.sh
+++ b/test/shell/lvmetad-pvscan-nomda.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
kill $(cat LOCAL_LVMETAD)
diff --git a/test/shell/lvmetad-restart.sh b/test/shell/lvmetad-restart.sh
index 6e25f8afb..6377c5761 100644
--- a/test/shell/lvmetad-restart.sh
+++ b/test/shell/lvmetad-restart.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2
diff --git a/test/shell/lvmetad-test.sh b/test/shell/lvmetad-test.sh
index 934e98594..6ebd9adb4 100644
--- a/test/shell/lvmetad-test.sh
+++ b/test/shell/lvmetad-test.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_pvs 2
diff --git a/test/shell/lvmetad-warning.sh b/test/shell/lvmetad-warning.sh
index 365f70f6b..1c6c62bee 100644
--- a/test/shell/lvmetad-warning.sh
+++ b/test/shell/lvmetad-warning.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_LVMETAD || skip
aux prepare_pvs 2
diff --git a/test/shell/lvresize-mirror.sh b/test/shell/lvresize-mirror.sh
index b4bbb04e6..0b9f526f7 100644
--- a/test/shell/lvresize-mirror.sh
+++ b/test/shell/lvresize-mirror.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 5
diff --git a/test/shell/lvresize-raid.sh b/test/shell/lvresize-raid.sh
index d5288f8b5..8c7d909f6 100644
--- a/test/shell/lvresize-raid.sh
+++ b/test/shell/lvresize-raid.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux have_raid 1 3 0 || skip
diff --git a/test/shell/lvresize-raid10.sh b/test/shell/lvresize-raid10.sh
index 42cfeb4ec..aead38534 100644
--- a/test/shell/lvresize-raid10.sh
+++ b/test/shell/lvresize-raid10.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux have_raid 1 3 0 || skip
diff --git a/test/shell/lvresize-rounding.sh b/test/shell/lvresize-rounding.sh
index e5425a266..d06dcf190 100644
--- a/test/shell/lvresize-rounding.sh
+++ b/test/shell/lvresize-rounding.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_pvs 3 22
diff --git a/test/shell/lvresize-thin-external-origin.sh b/test/shell/lvresize-thin-external-origin.sh
index 34991966c..e4463e2bd 100644
--- a/test/shell/lvresize-thin-external-origin.sh
+++ b/test/shell/lvresize-thin-external-origin.sh
@@ -10,7 +10,7 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Test resize of thin volume with external origin
-. lib/test
+. lib/inittest
aux have_thin 1 2 0 || skip
diff --git a/test/shell/lvresize-thin-metadata.sh b/test/shell/lvresize-thin-metadata.sh
index e62d8b6a7..a034d07b1 100644
--- a/test/shell/lvresize-thin-metadata.sh
+++ b/test/shell/lvresize-thin-metadata.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux have_thin 1 10 0 || skip
diff --git a/test/shell/lvresize-usage.sh b/test/shell/lvresize-usage.sh
index 65f6b1e01..a23583821 100644
--- a/test/shell/lvresize-usage.sh
+++ b/test/shell/lvresize-usage.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 2 80
diff --git a/test/shell/mda-rollback.sh b/test/shell/mda-rollback.sh
index aebbfb624..fa8e376d9 100644
--- a/test/shell/mda-rollback.sh
+++ b/test/shell/mda-rollback.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 3
diff --git a/test/shell/mdata-strings.sh b/test/shell/mdata-strings.sh
index 0102d4b57..a1598ad32 100644
--- a/test/shell/mdata-strings.sh
+++ b/test/shell/mdata-strings.sh
@@ -11,7 +11,7 @@
# 'Test for proper escaping of strings in metadata (bz431474)'
-. lib/test
+. lib/inittest
# For udev impossible to create
test "$LVM_TEST_DEVDIR" = "/dev" && skip
diff --git a/test/shell/metadata-balance.sh b/test/shell/metadata-balance.sh
index 5efc412d1..5ee0eba6a 100644
--- a/test/shell/metadata-balance.sh
+++ b/test/shell/metadata-balance.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 6
diff --git a/test/shell/metadata-dirs.sh b/test/shell/metadata-dirs.sh
index 852ce3547..f4a41bc3c 100644
--- a/test/shell/metadata-dirs.sh
+++ b/test/shell/metadata-dirs.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 3
diff --git a/test/shell/metadata.sh b/test/shell/metadata.sh
index b02e74a5b..3adb68432 100644
--- a/test/shell/metadata.sh
+++ b/test/shell/metadata.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 5
diff --git a/test/shell/mirror-names.sh b/test/shell/mirror-names.sh
index f5d13229b..809479819 100644
--- a/test/shell/mirror-names.sh
+++ b/test/shell/mirror-names.sh
@@ -12,7 +12,7 @@
test_description="check namings of mirrored LV"
-. lib/test
+. lib/inittest
# ---------------------------------------------------------------------
# Utilities
diff --git a/test/shell/mirror-vgreduce-removemissing.sh b/test/shell/mirror-vgreduce-removemissing.sh
index 340a333d8..62847aed9 100644
--- a/test/shell/mirror-vgreduce-removemissing.sh
+++ b/test/shell/mirror-vgreduce-removemissing.sh
@@ -12,7 +12,7 @@
test_description="ensure that 'vgreduce --removemissing' works on mirrored LV"
-. lib/test
+. lib/inittest
lv_is_on_ ()
{
diff --git a/test/shell/name-mangling.sh b/test/shell/name-mangling.sh
index fe54de4a0..ee3499456 100644
--- a/test/shell/name-mangling.sh
+++ b/test/shell/name-mangling.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
# This test is not using any lvm command
# so skip duplicate CLMVD and lvmetad test
diff --git a/test/shell/nomda-missing.sh b/test/shell/nomda-missing.sh
index 946eecd30..7de458b2f 100644
--- a/test/shell/nomda-missing.sh
+++ b/test/shell/nomda-missing.sh
@@ -10,7 +10,7 @@
# 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
+. lib/inittest
aux prepare_devs 4
pvcreate "$dev1" "$dev2"
diff --git a/test/shell/nomda-restoremissing.sh b/test/shell/nomda-restoremissing.sh
index 3dcd41e1f..01a77d068 100644
--- a/test/shell/nomda-restoremissing.sh
+++ b/test/shell/nomda-restoremissing.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 3
diff --git a/test/shell/orphan-ondisk.sh b/test/shell/orphan-ondisk.sh
index 266d74bd0..839507307 100644
--- a/test/shell/orphan-ondisk.sh
+++ b/test/shell/orphan-ondisk.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 2
vgreduce $vg "$dev1" 2>&1 | not grep -i 'parse error'
diff --git a/test/shell/pool-labels.sh b/test/shell/pool-labels.sh
index b5cbbdc6e..a2163e87f 100644
--- a/test/shell/pool-labels.sh
+++ b/test/shell/pool-labels.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
# lvmetad does not handle pool labels so skip test.
test ! -e LOCAL_LVMETAD || skip
diff --git a/test/shell/process-each-duplicate-vgnames.sh b/test/shell/process-each-duplicate-vgnames.sh
index 5138d2280..5867fd166 100644
--- a/test/shell/process-each-duplicate-vgnames.sh
+++ b/test/shell/process-each-duplicate-vgnames.sh
@@ -7,7 +7,7 @@
test_description='Test vgs with duplicate vg names'
-. lib/test
+. lib/inittest
aux prepare_devs 2
diff --git a/test/shell/process-each-lv.sh b/test/shell/process-each-lv.sh
index 207f1ba98..0260951ca 100644
--- a/test/shell/process-each-lv.sh
+++ b/test/shell/process-each-lv.sh
@@ -11,7 +11,7 @@
test_description='Exercise toollib process_each_lv'
-. lib/test
+. lib/inittest
aux prepare_devs 10
diff --git a/test/shell/process-each-vg.sh b/test/shell/process-each-vg.sh
index 90c0dbc74..e8690f51e 100644
--- a/test/shell/process-each-vg.sh
+++ b/test/shell/process-each-vg.sh
@@ -11,7 +11,7 @@
test_description='Exercise toollib process_each_vg'
-. lib/test
+. lib/inittest
aux prepare_devs 6
diff --git a/test/shell/profiles-thin.sh b/test/shell/profiles-thin.sh
index 25c12eb43..704ef2d11 100644
--- a/test/shell/profiles-thin.sh
+++ b/test/shell/profiles-thin.sh
@@ -13,7 +13,7 @@
# test thin profile functionality
#
-. lib/test
+. lib/inittest
DEV_SIZE=32
diff --git a/test/shell/profiles.sh b/test/shell/profiles.sh
index 49b8b9c6d..e054c8887 100644
--- a/test/shell/profiles.sh
+++ b/test/shell/profiles.sh
@@ -13,7 +13,7 @@
# test basic profile functionality
#
-. lib/test
+. lib/inittest
MSG_FAILED_TO_APPLY_CMD_PROFILE="Failed to apply command profile"
MSG_IGNORING_INVALID_CMD_PROFILE="Ignoring invalid command profile"
diff --git a/test/shell/pv-duplicate-uuid.sh b/test/shell/pv-duplicate-uuid.sh
index cc5f56be7..1763142a9 100644
--- a/test/shell/pv-duplicate-uuid.sh
+++ b/test/shell/pv-duplicate-uuid.sh
@@ -10,7 +10,7 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Test 'Found duplicate' is shown
-. lib/test
+. lib/inittest
aux prepare_devs 3
diff --git a/test/shell/pv-duplicate.sh b/test/shell/pv-duplicate.sh
index f315d86e5..ede960022 100644
--- a/test/shell/pv-duplicate.sh
+++ b/test/shell/pv-duplicate.sh
@@ -11,7 +11,7 @@
# 'Exercise duplicate metadata diagnostics'
-. lib/test
+. lib/inittest
aux prepare_devs 3
diff --git a/test/shell/pv-min-size.sh b/test/shell/pv-min-size.sh
index 59250cfae..d29e94c9a 100644
--- a/test/shell/pv-min-size.sh
+++ b/test/shell/pv-min-size.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
# use small default size - 512KB
aux lvmconf 'devices/pv_min_size = 512'
diff --git a/test/shell/pv-range-overflow.sh b/test/shell/pv-range-overflow.sh
index 0f353dda2..4caee02a5 100644
--- a/test/shell/pv-range-overflow.sh
+++ b/test/shell/pv-range-overflow.sh
@@ -11,7 +11,7 @@
# 'Ensure that pvmove diagnoses PE-range values 2^32 and larger.'
-. lib/test
+. lib/inittest
aux prepare_vg 2
diff --git a/test/shell/pvchange-usage.sh b/test/shell/pvchange-usage.sh
index 71388de66..ac63aec7e 100644
--- a/test/shell/pvchange-usage.sh
+++ b/test/shell/pvchange-usage.sh
@@ -11,7 +11,7 @@
# 'Test pvchange option values'
-. lib/test
+. lib/inittest
check_changed_uuid_() {
test "$1" != "$(get pv_field "$2" uuid)" || die "UUID has not changed!"
diff --git a/test/shell/pvcreate-bootloaderarea.sh b/test/shell/pvcreate-bootloaderarea.sh
index 0fa602292..42349e4e9 100644
--- a/test/shell/pvcreate-bootloaderarea.sh
+++ b/test/shell/pvcreate-bootloaderarea.sh
@@ -11,7 +11,7 @@
test_description='Test pvcreate bootloader area support'
-. lib/test
+. lib/inittest
aux prepare_devs 1
aux lvmconf 'global/suffix=0'
diff --git a/test/shell/pvcreate-ff.sh b/test/shell/pvcreate-ff.sh
index 72caf6397..1cbf0ff1b 100644
--- a/test/shell/pvcreate-ff.sh
+++ b/test/shell/pvcreate-ff.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 2
pvcreate "$dev1"
diff --git a/test/shell/pvcreate-metadata0.sh b/test/shell/pvcreate-metadata0.sh
index 01cb6be35..263bd88f7 100644
--- a/test/shell/pvcreate-metadata0.sh
+++ b/test/shell/pvcreate-metadata0.sh
@@ -15,7 +15,7 @@
#
# 'Test pvcreate without metadata on all pvs'
-. lib/test
+. lib/inittest
aux prepare_devs 2 128
diff --git a/test/shell/pvcreate-operation-md.sh b/test/shell/pvcreate-operation-md.sh
index 9cad7454f..f959c0bf0 100644
--- a/test/shell/pvcreate-operation-md.sh
+++ b/test/shell/pvcreate-operation-md.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
# skip this test if mdadm or sfdisk (or others) aren't available
which mdadm || skip
diff --git a/test/shell/pvcreate-operation.sh b/test/shell/pvcreate-operation.sh
index e446b62e4..e72f2b923 100644
--- a/test/shell/pvcreate-operation.sh
+++ b/test/shell/pvcreate-operation.sh
@@ -8,7 +8,7 @@
# 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
+. lib/inittest
aux lvmconf 'devices/md_component_detection = 1'
diff --git a/test/shell/pvcreate-usage.sh b/test/shell/pvcreate-usage.sh
index 251746dcb..48d2cebe9 100644
--- a/test/shell/pvcreate-usage.sh
+++ b/test/shell/pvcreate-usage.sh
@@ -12,7 +12,7 @@
test_description='Test pvcreate option values'
PAGESIZE=$(getconf PAGESIZE)
-. lib/test
+. lib/inittest
aux prepare_devs 4
diff --git a/test/shell/pvmove-all-segtypes.sh b/test/shell/pvmove-all-segtypes.sh
index 130a4e9f0..457054bc0 100644
--- a/test/shell/pvmove-all-segtypes.sh
+++ b/test/shell/pvmove-all-segtypes.sh
@@ -11,7 +11,7 @@
test_description="ensure pvmove works with all common segment types"
-. lib/test
+. lib/inittest
which md5sum || skip
diff --git a/test/shell/pvmove-background.sh b/test/shell/pvmove-background.sh
index f38d723d3..0cd5dd329 100644
--- a/test/shell/pvmove-background.sh
+++ b/test/shell/pvmove-background.sh
@@ -11,7 +11,7 @@
# Check pvmove behavior when it's progress and machine is rebooted
-. lib/test
+. lib/inittest
aux prepare_vg 3
diff --git a/test/shell/pvmove-basic.sh b/test/shell/pvmove-basic.sh
index 911bbf0c3..e58f5bf23 100644
--- a/test/shell/pvmove-basic.sh
+++ b/test/shell/pvmove-basic.sh
@@ -12,7 +12,7 @@
test_description="ensure that pvmove works with basic options"
-. lib/test
+. lib/inittest
which md5sum || skip
diff --git a/test/shell/pvmove-cache-segtypes.sh b/test/shell/pvmove-cache-segtypes.sh
index c9f2078eb..0c1020ee1 100644
--- a/test/shell/pvmove-cache-segtypes.sh
+++ b/test/shell/pvmove-cache-segtypes.sh
@@ -11,7 +11,7 @@
test_description="ensure pvmove works with the cache segment types"
-. lib/test
+. lib/inittest
# pvmove fails when a RAID LV is the origin of a cache LV
# pvmoving cache types is currently disabled in tools/pvmove.c
diff --git a/test/shell/pvmove-raid-segtypes.sh b/test/shell/pvmove-raid-segtypes.sh
index f3f5cd52e..dd12c1bcb 100644
--- a/test/shell/pvmove-raid-segtypes.sh
+++ b/test/shell/pvmove-raid-segtypes.sh
@@ -11,7 +11,7 @@
test_description="ensure pvmove works with raid segment types"
-. lib/test
+. lib/inittest
test -e LOCAL_CLVMD && skip
which md5sum || skip
diff --git a/test/shell/pvmove-restart.sh b/test/shell/pvmove-restart.sh
index b82763205..9f30cf705 100644
--- a/test/shell/pvmove-restart.sh
+++ b/test/shell/pvmove-restart.sh
@@ -11,7 +11,7 @@
# Check pvmove behavior when it's progress and machine is rebooted
-. lib/test
+. lib/inittest
aux prepare_pvs 3 60
diff --git a/test/shell/pvmove-thin-segtypes.sh b/test/shell/pvmove-thin-segtypes.sh
index 4bd3b2959..7819e6cc2 100644
--- a/test/shell/pvmove-thin-segtypes.sh
+++ b/test/shell/pvmove-thin-segtypes.sh
@@ -11,7 +11,7 @@
test_description="ensure pvmove works with thin segment types"
-. lib/test
+. lib/inittest
test -e LOCAL_CLVMD && skip
which md5sum || skip
diff --git a/test/shell/pvremove-thin.sh b/test/shell/pvremove-thin.sh
index e8af2af5c..5bfb880a5 100644
--- a/test/shell/pvremove-thin.sh
+++ b/test/shell/pvremove-thin.sh
@@ -12,7 +12,7 @@
# Checks we are not reading our own devices
# https://bugzilla.redhat.com/show_bug.cgi?id=1064374
-. lib/test
+. lib/inittest
aux prepare_vg
diff --git a/test/shell/pvremove-usage.sh b/test/shell/pvremove-usage.sh
index 52f04b815..3ebfd15c8 100644
--- a/test/shell/pvremove-usage.sh
+++ b/test/shell/pvremove-usage.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 3
pvcreate "$dev1"
diff --git a/test/shell/read-ahead.sh b/test/shell/read-ahead.sh
index 26335f072..764bef132 100644
--- a/test/shell/read-ahead.sh
+++ b/test/shell/read-ahead.sh
@@ -15,7 +15,7 @@
test_description='Test read-ahead functionality'
-. lib/test
+. lib/inittest
aux prepare_vg 5
diff --git a/test/shell/snapshot-autoumount-dmeventd.sh b/test/shell/snapshot-autoumount-dmeventd.sh
index ddc41f740..9d5b8c555 100644
--- a/test/shell/snapshot-autoumount-dmeventd.sh
+++ b/test/shell/snapshot-autoumount-dmeventd.sh
@@ -11,7 +11,7 @@
# no automatic extensions please
-. lib/test
+. lib/inittest
which mkfs.ext2 || skip
diff --git a/test/shell/snapshot-lvm1.sh b/test/shell/snapshot-lvm1.sh
index 642dd6ffb..f6afe148c 100644
--- a/test/shell/snapshot-lvm1.sh
+++ b/test/shell/snapshot-lvm1.sh
@@ -12,7 +12,7 @@
# regression test for lvmetad reporting error:
# Internal error: LV snap_with_lvm1_meta (00000000000000000000000000000001) missing from preload metadata
-. lib/test
+. lib/inittest
aux prepare_devs 2
diff --git a/test/shell/snapshot-maxsize.sh b/test/shell/snapshot-maxsize.sh
index e1380c6c1..f5be5a555 100644
--- a/test/shell/snapshot-maxsize.sh
+++ b/test/shell/snapshot-maxsize.sh
@@ -12,7 +12,7 @@
# Testing calculation of snapshot space
# https://bugzilla.redhat.com/show_bug.cgi?id=1035871
-. lib/test
+. lib/inittest
aux prepare_pvs 1
diff --git a/test/shell/snapshot-merge.sh b/test/shell/snapshot-merge.sh
index 8760e535a..bebc9de0b 100644
--- a/test/shell/snapshot-merge.sh
+++ b/test/shell/snapshot-merge.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
which mkfs.ext3 || skip
diff --git a/test/shell/snapshot-reactivate.sh b/test/shell/snapshot-reactivate.sh
index 28e1d62cf..0fbdc6232 100644
--- a/test/shell/snapshot-reactivate.sh
+++ b/test/shell/snapshot-reactivate.sh
@@ -15,7 +15,7 @@
# is triggered by kernel 3.14-rc[1..5]
# http://www.redhat.com/archives/dm-devel/2014-March/msg00005.html
#
-. lib/test
+. lib/inittest
# Snapshot should remain unmodified
check_s_() {
diff --git a/test/shell/snapshot-usage.sh b/test/shell/snapshot-usage.sh
index fd4365010..3fc40e332 100644
--- a/test/shell/snapshot-usage.sh
+++ b/test/shell/snapshot-usage.sh
@@ -11,7 +11,7 @@
# no automatic extensions please
-. lib/test
+. lib/inittest
MKFS=mkfs.ext2
which $MKFS || skip
diff --git a/test/shell/snapshots-of-mirrors.sh b/test/shell/snapshots-of-mirrors.sh
index ac5cf85e2..07b163db9 100644
--- a/test/shell/snapshots-of-mirrors.sh
+++ b/test/shell/snapshots-of-mirrors.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 4
diff --git a/test/shell/stray-device-node.sh b/test/shell/stray-device-node.sh
index cd6525f88..0ff4796cd 100644
--- a/test/shell/stray-device-node.sh
+++ b/test/shell/stray-device-node.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 3
cp -r "$dev1" "$DM_DEV_DIR/stray"
diff --git a/test/shell/tags.sh b/test/shell/tags.sh
index ee2f61028..bc66d15c7 100644
--- a/test/shell/tags.sh
+++ b/test/shell/tags.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_pvs 4
diff --git a/test/shell/test-partition.sh b/test/shell/test-partition.sh
index f7e91b808..af04b4ef5 100644
--- a/test/shell/test-partition.sh
+++ b/test/shell/test-partition.sh
@@ -17,7 +17,7 @@
LVM_TEST_CONFIG_DEVICES="types = [\"device-mapper\", 142]"
-. lib/test
+. lib/inittest
which sfdisk || skip
diff --git a/test/shell/thin-autoumount-dmeventd.sh b/test/shell/thin-autoumount-dmeventd.sh
index bbffe8a35..a77ad082c 100644
--- a/test/shell/thin-autoumount-dmeventd.sh
+++ b/test/shell/thin-autoumount-dmeventd.sh
@@ -16,7 +16,7 @@ is_dir_mounted_()
cat /proc/mounts | sed 's:\\040: :g' | grep "$1"
}
-. lib/test
+. lib/inittest
#
# Main
diff --git a/test/shell/thin-defaults.sh b/test/shell/thin-defaults.sh
index 677d2f1e4..4f873cc18 100644
--- a/test/shell/thin-defaults.sh
+++ b/test/shell/thin-defaults.sh
@@ -11,7 +11,7 @@
# test defaults entered through lvm.conf
-. lib/test
+. lib/inittest
#
# Main
diff --git a/test/shell/thin-merge.sh b/test/shell/thin-merge.sh
index 60234a6bc..d3275ddd0 100644
--- a/test/shell/thin-merge.sh
+++ b/test/shell/thin-merge.sh
@@ -11,7 +11,7 @@
# test merge of thin snapshot
-. lib/test
+. lib/inittest
MKFS=mkfs.ext2
which $MKFS || skip
diff --git a/test/shell/thin-restore.sh b/test/shell/thin-restore.sh
index 7580ae404..fd4118f21 100644
--- a/test/shell/thin-restore.sh
+++ b/test/shell/thin-restore.sh
@@ -11,7 +11,7 @@
# test restore operation of thin pool metadata
-. lib/test
+. lib/inittest
#
# Main
diff --git a/test/shell/thin-vglock.sh b/test/shell/thin-vglock.sh
index 083fcd8dc..fe1ee1115 100644
--- a/test/shell/thin-vglock.sh
+++ b/test/shell/thin-vglock.sh
@@ -12,7 +12,7 @@
# Test locking works and doesn't update metadata
# RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1063542
-. lib/test
+. lib/inittest
MKFS=mkfs.ext2
which $MKFS || skip
diff --git a/test/shell/topology-support.sh b/test/shell/topology-support.sh
index 4fa73beee..a1af6d7ad 100644
--- a/test/shell/topology-support.sh
+++ b/test/shell/topology-support.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
which mkfs.ext3 || skip
diff --git a/test/shell/unknown-segment.sh b/test/shell/unknown-segment.sh
index b4a5dfda6..b07e1b5f2 100644
--- a/test/shell/unknown-segment.sh
+++ b/test/shell/unknown-segment.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 4
diff --git a/test/shell/unlost-pv.sh b/test/shell/unlost-pv.sh
index 307a71bcd..980c45179 100644
--- a/test/shell/unlost-pv.sh
+++ b/test/shell/unlost-pv.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
check_() {
# vgscan needs --cache option for direct scan if lvmetad is used
diff --git a/test/shell/vg-name-from-env.sh b/test/shell/vg-name-from-env.sh
index c399bb6c9..67ad5c558 100644
--- a/test/shell/vg-name-from-env.sh
+++ b/test/shell/vg-name-from-env.sh
@@ -7,7 +7,7 @@
test_description='Test the vg name for an lv from env var'
-. lib/test
+. lib/inittest
aux prepare_devs 2
diff --git a/test/shell/vgcfgbackup-usage.sh b/test/shell/vgcfgbackup-usage.sh
index bc09b5bdf..eb3698397 100644
--- a/test/shell/vgcfgbackup-usage.sh
+++ b/test/shell/vgcfgbackup-usage.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_pvs 4
diff --git a/test/shell/vgchange-many.sh b/test/shell/vgchange-many.sh
index 491c8b1e4..16e051682 100644
--- a/test/shell/vgchange-many.sh
+++ b/test/shell/vgchange-many.sh
@@ -10,7 +10,7 @@
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Check perfomance of activation and deactivation
-. lib/test
+. lib/inittest
# FIXME: lvmetad fails with i.e. 1500 device on memory failure...
diff --git a/test/shell/vgchange-maxlv.sh b/test/shell/vgchange-maxlv.sh
index 99a6a79d8..35ce5d6c1 100644
--- a/test/shell/vgchange-maxlv.sh
+++ b/test/shell/vgchange-maxlv.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_dmeventd
aux prepare_pvs 3
diff --git a/test/shell/vgchange-partial.sh b/test/shell/vgchange-partial.sh
index ad99460af..7fd984016 100644
--- a/test/shell/vgchange-partial.sh
+++ b/test/shell/vgchange-partial.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 2
diff --git a/test/shell/vgchange-sysinit.sh b/test/shell/vgchange-sysinit.sh
index 49c3bdeed..4debf42cc 100644
--- a/test/shell/vgchange-sysinit.sh
+++ b/test/shell/vgchange-sysinit.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
test -e LOCAL_CLVMD && skip
diff --git a/test/shell/vgchange-usage.sh b/test/shell/vgchange-usage.sh
index 0d57913b7..54734c1e3 100644
--- a/test/shell/vgchange-usage.sh
+++ b/test/shell/vgchange-usage.sh
@@ -11,7 +11,7 @@
test_description='Exercise some vgchange diagnostics'
-. lib/test
+. lib/inittest
aux prepare_pvs 4
diff --git a/test/shell/vgck.sh b/test/shell/vgck.sh
index b6858cbb1..629b6e7fd 100644
--- a/test/shell/vgck.sh
+++ b/test/shell/vgck.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 3
lvcreate -n blabla -L 1 $vg
diff --git a/test/shell/vgcreate-usage.sh b/test/shell/vgcreate-usage.sh
index bf7d3b3d8..a1d178d39 100644
--- a/test/shell/vgcreate-usage.sh
+++ b/test/shell/vgcreate-usage.sh
@@ -11,7 +11,7 @@
test_description='Exercise some vgcreate diagnostics'
-. lib/test
+. lib/inittest
aux prepare_devs 3
pvcreate "$dev1" "$dev2"
diff --git a/test/shell/vgextend-restoremissing.sh b/test/shell/vgextend-restoremissing.sh
index 8812c8cce..7b7748fd7 100644
--- a/test/shell/vgextend-restoremissing.sh
+++ b/test/shell/vgextend-restoremissing.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 3
diff --git a/test/shell/vgextend-usage.sh b/test/shell/vgextend-usage.sh
index 0e347c351..93401f0c7 100644
--- a/test/shell/vgextend-usage.sh
+++ b/test/shell/vgextend-usage.sh
@@ -13,7 +13,7 @@
# Exercise various vgextend commands
#
-. lib/test
+. lib/inittest
aux prepare_devs 5
diff --git a/test/shell/vgimportclone.sh b/test/shell/vgimportclone.sh
index 29c172e09..c3d7e523d 100644
--- a/test/shell/vgimportclone.sh
+++ b/test/shell/vgimportclone.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 2
diff --git a/test/shell/vgmerge-operation.sh b/test/shell/vgmerge-operation.sh
index 0c0517c0e..261953eef 100644
--- a/test/shell/vgmerge-operation.sh
+++ b/test/shell/vgmerge-operation.sh
@@ -11,7 +11,7 @@
test_description='Test vgmerge operation'
-. lib/test
+. lib/inittest
aux prepare_pvs 4 64
diff --git a/test/shell/vgmerge-usage.sh b/test/shell/vgmerge-usage.sh
index ef613d78a..d8fa09c15 100644
--- a/test/shell/vgmerge-usage.sh
+++ b/test/shell/vgmerge-usage.sh
@@ -11,7 +11,7 @@
# 'Test vgmerge command options for validity'
-. lib/test
+. lib/inittest
aux prepare_pvs 4
diff --git a/test/shell/vgreduce-removemissing-snapshot.sh b/test/shell/vgreduce-removemissing-snapshot.sh
index c587b172c..1bea39754 100644
--- a/test/shell/vgreduce-removemissing-snapshot.sh
+++ b/test/shell/vgreduce-removemissing-snapshot.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
exit 0
diff --git a/test/shell/vgreduce-usage.sh b/test/shell/vgreduce-usage.sh
index fab74963b..52c5f36cf 100644
--- a/test/shell/vgreduce-usage.sh
+++ b/test/shell/vgreduce-usage.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 4
diff --git a/test/shell/vgremove-corrupt-vg.sh b/test/shell/vgremove-corrupt-vg.sh
index 9e750ac78..f709e4eb1 100644
--- a/test/shell/vgremove-corrupt-vg.sh
+++ b/test/shell/vgremove-corrupt-vg.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_vg 3
lvcreate -n blabla -L 1 $vg -an --zero n
diff --git a/test/shell/vgrename-usage.sh b/test/shell/vgrename-usage.sh
index 59576acd9..de1b9332b 100644
--- a/test/shell/vgrename-usage.sh
+++ b/test/shell/vgrename-usage.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux prepare_devs 4
pvcreate "$dev1" "$dev2"
diff --git a/test/shell/vgsplit-operation.sh b/test/shell/vgsplit-operation.sh
index 4291dd4b5..8081b3821 100644
--- a/test/shell/vgsplit-operation.sh
+++ b/test/shell/vgsplit-operation.sh
@@ -11,7 +11,7 @@
# Test vgsplit operation, including different LV types
-. lib/test
+. lib/inittest
COMM() {
LAST_TEST="$@"
diff --git a/test/shell/vgsplit-raid.sh b/test/shell/vgsplit-raid.sh
index 3174e88e0..a7c9687f6 100644
--- a/test/shell/vgsplit-raid.sh
+++ b/test/shell/vgsplit-raid.sh
@@ -11,7 +11,7 @@
# Test vgsplit operation, including different LV types
-. lib/test
+. lib/inittest
COMM() {
LAST_TEST="$@"
diff --git a/test/shell/vgsplit-stacked.sh b/test/shell/vgsplit-stacked.sh
index 4373b2070..42010fc6b 100644
--- a/test/shell/vgsplit-stacked.sh
+++ b/test/shell/vgsplit-stacked.sh
@@ -9,7 +9,7 @@
# 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
+. lib/inittest
aux extend_filter_LVMTEST
aux prepare_pvs 3
diff --git a/test/shell/vgsplit-thin.sh b/test/shell/vgsplit-thin.sh
index 8fed1af0b..7b06132fd 100644
--- a/test/shell/vgsplit-thin.sh
+++ b/test/shell/vgsplit-thin.sh
@@ -11,7 +11,7 @@
# Test vgsplit command options for validity
-. lib/test
+. lib/inittest
aux have_thin 1 0 0 || skip
diff --git a/test/shell/vgsplit-usage.sh b/test/shell/vgsplit-usage.sh
index 10167d729..fe999f90c 100644
--- a/test/shell/vgsplit-usage.sh
+++ b/test/shell/vgsplit-usage.sh
@@ -11,7 +11,7 @@
# Test vgsplit command options for validity
-. lib/test
+. lib/inittest
aux prepare_devs 5
diff --git a/test/shell/zero-usage.sh b/test/shell/zero-usage.sh
index b14055820..046b3f5fe 100644
--- a/test/shell/zero-usage.sh
+++ b/test/shell/zero-usage.sh
@@ -11,7 +11,7 @@
# Basic usage of zero target
-. lib/test
+. lib/inittest
which md5sum || skip