mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
tests: more system defaults for installed tests
When testing installed binaries on system, use more 'built-in' predefined settings to usethem with their compiled-in values. Also it's better to use same locking dir so the system's pvscan is not unexpectedly interferring with test commands.
This commit is contained in:
parent
f1858d209d
commit
8d2ad4419a
@ -1299,8 +1299,6 @@ activation/polling_interval = 1
|
||||
activation/retry_deactivation = 1
|
||||
activation/snapshot_autoextend_percent = 50
|
||||
activation/snapshot_autoextend_threshold = 50
|
||||
activation/udev_rules = 1
|
||||
activation/udev_sync = 1
|
||||
activation/verify_udev_operations = $LVM_VERIFY_UDEV
|
||||
activation/raid_region_size = 512
|
||||
allocation/wipe_signatures_when_zeroing_new_lvs = 0
|
||||
@ -1324,8 +1322,6 @@ global/cache_dump_executable = "$LVM_TEST_CACHE_DUMP_CMD"
|
||||
global/cache_repair_executable = "$LVM_TEST_CACHE_REPAIR_CMD"
|
||||
global/detect_internal_vg_cache_corruption = 1
|
||||
global/fallback_to_local_locking = 0
|
||||
global/library_dir = "$TESTDIR/lib"
|
||||
global/locking_dir = "$TESTDIR/var/lock/lvm"
|
||||
global/locking_type=$LVM_TEST_LOCKING
|
||||
global/notify_dbus = 0
|
||||
global/si_unit_consistency = 1
|
||||
@ -1342,12 +1338,18 @@ log/overwrite = 1
|
||||
log/syslog = 0
|
||||
log/verbose = 0
|
||||
EOF
|
||||
# For 'rpm' builds use system installed binaries.
|
||||
# For 'rpm' builds use system installed binaries
|
||||
# and libraries and locking dir and some more built-in
|
||||
# defaults
|
||||
# For test suite run use binaries from builddir.
|
||||
test -z "${abs_top_builddir+varset}" || {
|
||||
cat >> "$config_values" <<-EOF
|
||||
dmeventd/executable = "$abs_top_builddir/test/lib/dmeventd"
|
||||
activation/udev_rules = 1
|
||||
activation/udev_sync = 1
|
||||
global/fsadm_executable = "$abs_top_builddir/test/lib/fsadm"
|
||||
global/library_dir = "$TESTDIR/lib"
|
||||
global/locking_dir = "$TESTDIR/var/lock/lvm"
|
||||
EOF
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user