1
0
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:
Petr Rockai 2012-10-10 00:20:22 +02:00
parent d760669e80
commit 6e523f01d0
7 changed files with 12 additions and 5 deletions

View File

@ -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 \

View File

@ -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 = ""'

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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