test btrfs tomb resize

This commit is contained in:
Jaromil 2024-08-31 05:59:48 +02:00
parent b7fa057e48
commit 447817de6c
2 changed files with 14 additions and 2 deletions

View File

@ -28,7 +28,7 @@ if test_have_prereq DOAS; then
fi
if test_have_prereq BTRFS; then
test_export "create_btrfs"
test_export "btrfs"
test_expect_success 'Testing tomb creation using BTRFS filesystem' '
tt_dig -s 120 &&
tt_forge --tomb-pwd $DUMMYPASS &&
@ -38,7 +38,7 @@ if test_have_prereq BTRFS; then
tt_lock --tomb-pwd $DUMMYPASS --filesystem btrfs
'
test_export "create_btrfsmixed"
test_export "btrfsmixed"
test_expect_success 'Testing tomb creation using BTRFS mixedmode filesystem' '
tt_dig -s 20 &&
tt_forge --tomb-pwd $DUMMYPASS &&

View File

@ -18,4 +18,16 @@ if test_have_prereq RESIZER; then
fi # RESIZER
if test_have_prereq BTRFS; then
test_export "btrfs"
test_expect_success 'Testing resize using BTRFS filesystem' '
tt resize -s 150 $tomb -k $tomb_key --unsafe --tomb-pwd $DUMMYPASS
'
test_export "btrfsmixed"
test_expect_success 'Testing resize using BTRFS filesystem' '
tt resize -s 30 $tomb -k $tomb_key --unsafe --tomb-pwd $DUMMYPASS
'
fi
test_done