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
|
|
|
|
test_export "test" # Using already generated tomb
|
|
|
|
test_expect_success 'Testing resize to 30 MB tomb' '
|
|
|
|
tt resize -s 30 $tomb -k $tomb_key --unsafe --tomb-pwd $DUMMYPASS
|
|
|
|
'
|
2022-04-13 14:12:11 +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
|
|
|
|
'
|
|
|
|
fi
|
|
|
|
|
2022-04-13 14:12:11 +00:00
|
|
|
fi # RESIZER
|
|
|
|
|
2019-03-03 16:56:26 +00:00
|
|
|
if test_have_prereq RESIZER SPHINX ORACLE; then
|
|
|
|
test_export "sphinx_test" # Using already generated tomb
|
|
|
|
test_expect_success 'Testing resize to 30 MB tomb (sphinx)' '
|
|
|
|
tt resize -s 30 $tomb -k $tomb_key --unsafe --tomb-pwd $DUMMYPASS --sphx-user $DUMMYUSER --sphx-host $DUMMYHOST
|
|
|
|
'
|
|
|
|
fi
|
|
|
|
|
2017-05-01 20:21:25 +00:00
|
|
|
test_done
|