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