2017-05-01 20:21:25 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
export test_description="Testing tomb resize feature"
|
|
|
|
|
|
|
|
source ./setup
|
|
|
|
|
|
|
|
if test_have_prereq RESIZER; then
|
2024-08-31 03:18:03 +00:00
|
|
|
test_export "test" # Using already generated tomb
|
|
|
|
test_expect_success 'Testing resize to 30 MB tomb' '
|
2017-05-01 20:21:25 +00:00
|
|
|
tt resize -s 30 $tomb -k $tomb_key --unsafe --tomb-pwd $DUMMYPASS
|
|
|
|
'
|
2024-08-31 03:18:03 +00:00
|
|
|
if test_have_prereq GPGRCPT; then
|
2017-05-01 20:21:25 +00:00
|
|
|
test_export "recipient" # Using already generated tomb
|
|
|
|
test_expect_success 'Testing resize to 30 MB tomb with GnuPG keys' '
|
|
|
|
tt resize -s 30 $tomb -k $tomb_key -g -r $KEY2
|
|
|
|
'
|
2024-08-31 03:18:03 +00:00
|
|
|
fi
|
2017-05-01 20:21:25 +00:00
|
|
|
|
2022-04-13 14:12:11 +00:00
|
|
|
fi # RESIZER
|
|
|
|
|
2024-08-31 03:59:48 +00:00
|
|
|
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
|
|
|
|
|
2017-05-01 20:21:25 +00:00
|
|
|
test_done
|