mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: no lvmetad reload for debugless output
Introduce LVM_TEST_LVMETAD_DEBUG_OPTS to allow to override default debug opts for lvmetad. However could be still overloaded on command line: make check_lvmetad LVM_TEST_LVMETAD_DEBUG_OPTS="-l all"...
This commit is contained in:
parent
dd4e6b4e7e
commit
a3473e60db
@ -82,6 +82,7 @@ help:
|
|||||||
@echo " LVM_TEST_DIR Where to create test files [$(LVM_TEST_DIR)]."
|
@echo " LVM_TEST_DIR Where to create test files [$(LVM_TEST_DIR)]."
|
||||||
@echo " LVM_TEST_LOCKING Normal (1), Cluster (3)."
|
@echo " LVM_TEST_LOCKING Normal (1), Cluster (3)."
|
||||||
@echo " LVM_TEST_LVMETAD Start lvmetad (1)."
|
@echo " LVM_TEST_LVMETAD Start lvmetad (1)."
|
||||||
|
@echo " LVM_TEST_LVMETAD_DEBUG_OPTS Allows to override debug opts [-l all]."
|
||||||
@echo " LVM_TEST_NODEBUG Do not debug lvm commands."
|
@echo " LVM_TEST_NODEBUG Do not debug lvm commands."
|
||||||
@echo " LVM_TEST_PARALLEL May skip agresive wipe of LVMTEST resources."
|
@echo " LVM_TEST_PARALLEL May skip agresive wipe of LVMTEST resources."
|
||||||
@echo " LVM_TEST_RESULTS Where to create result files [results]."
|
@echo " LVM_TEST_RESULTS Where to create result files [results]."
|
||||||
|
@ -84,7 +84,6 @@ prepare_dmeventd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
prepare_lvmetad() {
|
prepare_lvmetad() {
|
||||||
test $# -eq 0 && default_opts="-l all"
|
|
||||||
rm -f debug.log strace.log
|
rm -f debug.log strace.log
|
||||||
# skip if we don't have our own lvmetad...
|
# skip if we don't have our own lvmetad...
|
||||||
if test -z "${installed_testsuite+varset}"; then
|
if test -z "${installed_testsuite+varset}"; then
|
||||||
@ -96,8 +95,11 @@ prepare_lvmetad() {
|
|||||||
|
|
||||||
kill_sleep_kill_ LOCAL_LVMETAD ${LVM_VALGRIND_LVMETAD:-0}
|
kill_sleep_kill_ LOCAL_LVMETAD ${LVM_VALGRIND_LVMETAD:-0}
|
||||||
|
|
||||||
|
# Default debug is "-l all" and could be override
|
||||||
|
# by setting LVM_TEST_LVMETAD_DEBUG_OPTS before calling inittest.
|
||||||
echo "preparing lvmetad..."
|
echo "preparing lvmetad..."
|
||||||
$run_valgrind lvmetad -f "$@" -s "$TESTDIR/lvmetad.socket" $default_opts "$@" &
|
$run_valgrind lvmetad -f "$@" -s "$TESTDIR/lvmetad.socket" \
|
||||||
|
${LVM_TEST_LVMETAD_DEBUG_OPTS--l all} "$@" &
|
||||||
echo $! > LOCAL_LVMETAD
|
echo $! > LOCAL_LVMETAD
|
||||||
while ! test -e "$TESTDIR/lvmetad.socket"; do echo -n .; sleep .1; done # wait for the socket
|
while ! test -e "$TESTDIR/lvmetad.socket"; do echo -n .; sleep .1; done # wait for the socket
|
||||||
echo ok
|
echo ok
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
# 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
|
||||||
|
|
||||||
|
# disable lvmetad logging as it bogs down test systems
|
||||||
|
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
|
||||||
|
|
||||||
. lib/inittest
|
. lib/inittest
|
||||||
|
|
||||||
log_name_to_count() {
|
log_name_to_count() {
|
||||||
@ -110,9 +113,6 @@ test_lvconvert() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# disable lvmetad logging as it bogs down test systems
|
|
||||||
test -e LOCAL_LVMETAD && aux prepare_lvmetad ""
|
|
||||||
|
|
||||||
aux prepare_pvs 5 5
|
aux prepare_pvs 5 5
|
||||||
vgcreate -s 32k $vg $(cat DEVICES)
|
vgcreate -s 32k $vg $(cat DEVICES)
|
||||||
|
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
# 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/inittest
|
|
||||||
|
|
||||||
# disable lvmetad logging as it bogs down test systems
|
# disable lvmetad logging as it bogs down test systems
|
||||||
test -e LOCAL_LVMETAD && aux prepare_lvmetad ""
|
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
|
||||||
|
|
||||||
|
. 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
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
# 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/inittest
|
|
||||||
|
|
||||||
# disable lvmetad logging as it bogs down test systems
|
# disable lvmetad logging as it bogs down test systems
|
||||||
test -e LOCAL_LVMETAD && aux prepare_lvmetad ""
|
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
|
||||||
|
|
||||||
|
. lib/inittest
|
||||||
|
|
||||||
get_image_pvs() {
|
get_image_pvs() {
|
||||||
local d
|
local d
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
|
|
||||||
test_description="ensure that 'vgreduce --removemissing' works on mirrored LV"
|
test_description="ensure that 'vgreduce --removemissing' works on mirrored LV"
|
||||||
|
|
||||||
. lib/inittest
|
|
||||||
|
|
||||||
# disable lvmetad logging as it bogs down test systems
|
# disable lvmetad logging as it bogs down test systems
|
||||||
test -e LOCAL_LVMETAD && aux prepare_lvmetad ""
|
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
|
||||||
|
|
||||||
|
. lib/inittest
|
||||||
|
|
||||||
lv_is_on_ ()
|
lv_is_on_ ()
|
||||||
{
|
{
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
|
|
||||||
test_description='Exercise toollib process_each_lv'
|
test_description='Exercise toollib process_each_lv'
|
||||||
|
|
||||||
. lib/inittest
|
|
||||||
|
|
||||||
# disable lvmetad logging as it bogs down test systems
|
# disable lvmetad logging as it bogs down test systems
|
||||||
test -e LOCAL_LVMETAD && aux prepare_lvmetad ""
|
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
|
||||||
|
|
||||||
|
. lib/inittest
|
||||||
|
|
||||||
aux prepare_devs 10
|
aux prepare_devs 10
|
||||||
|
|
||||||
|
@ -12,13 +12,13 @@
|
|||||||
|
|
||||||
test_description="ensure that pvmove works with basic options"
|
test_description="ensure that pvmove works with basic options"
|
||||||
|
|
||||||
|
# disable lvmetad logging as it bogs down test systems
|
||||||
|
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
|
||||||
|
|
||||||
. lib/inittest
|
. lib/inittest
|
||||||
|
|
||||||
which md5sum || skip
|
which md5sum || skip
|
||||||
|
|
||||||
# disable lvmetad logging as it bogs down test systems
|
|
||||||
test -e LOCAL_LVMETAD && aux prepare_lvmetad ""
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------
|
# ---------------------------------------------------------------------
|
||||||
# Utilities
|
# Utilities
|
||||||
|
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
|
|
||||||
# Test vgsplit operation, including different LV types
|
# Test vgsplit operation, including different LV types
|
||||||
|
|
||||||
. lib/inittest
|
|
||||||
|
|
||||||
# disable lvmetad logging as it bogs down test systems
|
# disable lvmetad logging as it bogs down test systems
|
||||||
test -e LOCAL_LVMETAD && aux prepare_lvmetad ""
|
export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
|
||||||
|
|
||||||
|
. lib/inittest
|
||||||
|
|
||||||
COMM() {
|
COMM() {
|
||||||
LAST_TEST="$@"
|
LAST_TEST="$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user