mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
test: Skip thin tests if thin support is configured out.
This commit is contained in:
parent
d760669e80
commit
6e523f01d0
@ -98,6 +98,7 @@ lib/paths: $(srcdir)/Makefile.in .lib-dir-stamp
|
||||
echo 'abs_srcdir=$(abs_srcdir)' >> $@-t
|
||||
echo 'abs_builddir=$(abs_builddir)' >> $@-t
|
||||
echo 'export DM_UDEV_SYNCHRONISATION=$(dm_udev_synchronisation)' >> $@-t
|
||||
echo 'export THIN=@THIN@' >> $@-t
|
||||
mv $@-t $@
|
||||
|
||||
LIB = lib/not lib/should lib/harness \
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
. lib/test
|
||||
|
||||
aux target_at_least dm-thin-pool 1 0 0 || skip
|
||||
aux have_thin 1 0 0 || skip
|
||||
|
||||
# disable thin_check if not present in system
|
||||
which thin_check || aux lvmconf 'global/thin_check_executable = ""'
|
||||
|
@ -530,6 +530,12 @@ target_at_least()
|
||||
test "$revision" -ge "$3" 2>/dev/null || return 1
|
||||
}
|
||||
|
||||
have_thin()
|
||||
{
|
||||
target_at_least dm-thin-pool "$@" || exit 1
|
||||
test "$THIN" = shared || test "$THIN" = internal || exit 1
|
||||
}
|
||||
|
||||
test -f DEVICES && devs=$(cat DEVICES)
|
||||
|
||||
#unset LVM_VALGRIND
|
||||
|
@ -18,7 +18,7 @@
|
||||
#
|
||||
# Main
|
||||
#
|
||||
aux target_at_least dm-thin-pool 1 1 0 || skip
|
||||
aux have_thin 1 1 0 || skip
|
||||
|
||||
aux prepare_pvs 2 64
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#
|
||||
# Main
|
||||
#
|
||||
aux target_at_least dm-thin-pool 1 0 0 || skip
|
||||
aux have_thin 1 0 0 || skip
|
||||
|
||||
aux prepare_pvs 4 64
|
||||
|
||||
|
@ -26,7 +26,7 @@ check_lv_field_modules_()
|
||||
#
|
||||
# Main
|
||||
#
|
||||
aux target_at_least dm-thin-pool 1 0 0 || skip
|
||||
aux have_thin 1 0 0 || skip
|
||||
|
||||
aux prepare_pvs 2 64
|
||||
|
||||
|
@ -29,7 +29,7 @@ check_lv_field_modules_()
|
||||
#
|
||||
# Main
|
||||
#
|
||||
aux target_at_least dm-thin-pool 1 0 0 || skip
|
||||
aux have_thin 1 0 0 || skip
|
||||
|
||||
aux prepare_pvs 2 64
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user