mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-22 10:08:58 +00:00
disable broken gpg recipient tests
This commit is contained in:
parent
962bc7584a
commit
7b364bedba
@ -4,6 +4,8 @@ export test_description="Testing tomb with GnuPG keys"
|
||||
|
||||
source ./setup
|
||||
|
||||
if test_have_prereq GPGRCPT; then
|
||||
|
||||
test_export "recipient"
|
||||
test_expect_success 'Testing tomb with GnuPG keys: creation' '
|
||||
tt_dig -s 20 &&
|
||||
@ -54,4 +56,6 @@ test_expect_success 'Testing tomb creation with untrusted GnuPG keys' '
|
||||
test_must_fail tt_forge -g -r $KEY_UNTRUSTED
|
||||
'
|
||||
|
||||
fi
|
||||
|
||||
test_done
|
||||
|
@ -9,13 +9,15 @@ if test_have_prereq RESIZER; then
|
||||
test_expect_success 'Testing resize to 30 MB tomb' '
|
||||
tt resize -s 30 $tomb -k $tomb_key --unsafe --tomb-pwd $DUMMYPASS
|
||||
'
|
||||
|
||||
if test_have_prereq GPGRCPT; then
|
||||
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
|
||||
|
||||
fi # RESIZER
|
||||
|
||||
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)' '
|
||||
|
@ -12,11 +12,15 @@ test_expect_success 'Testing tomb with GnuPG keys: passwd' '
|
||||
--tomb-old-pwd $DUMMYPASSNEW --tomb-pwd $DUMMYPASS
|
||||
'
|
||||
|
||||
if test_have_prereq GPGRCPT; then
|
||||
|
||||
test_export "recipient" # Using already generated tomb
|
||||
test_expect_success 'Testing tomb with GnuPG keys: passwd' '
|
||||
tt passwd -k $tomb_key -g -r $KEY2
|
||||
'
|
||||
|
||||
fi
|
||||
|
||||
if test_have_prereq SPHINX ORACLE; then
|
||||
test_export "sphinx_test" # Using already generated tomb
|
||||
test_expect_success 'Testing changing tomb password with sphinx' '
|
||||
|
@ -33,6 +33,7 @@ if test_have_prereq STEGHIDE; then
|
||||
tt_close
|
||||
'
|
||||
|
||||
if test_have_prereq GPGRCPT; then
|
||||
test_export "recipient" # Using already generated tomb
|
||||
cp -f "$TEST_HOME/arditi.jpg" "$tomb_img"
|
||||
test_expect_success 'Testing tomb with GnuPG keys and steganographic: bury' '
|
||||
@ -60,7 +61,9 @@ if test_have_prereq STEGHIDE; then
|
||||
tt open -k $tomb_img $tomb -g --unsafe --tomb-pwd $DUMMYPASS &&
|
||||
tt_close
|
||||
'
|
||||
fi
|
||||
fi # GPGRCPT
|
||||
|
||||
fi # STEGHIDE
|
||||
|
||||
if test_have_prereq PYTHON2 CLOAKIFY DECLOAKIFY; then
|
||||
test_expect_success 'Testing tomb and steganographic: cloak' '
|
||||
|
@ -18,6 +18,7 @@ test_expect_success 'Testing set key' '
|
||||
tt_close
|
||||
'
|
||||
|
||||
if test_have_prereq GPGRCPT; then
|
||||
test_export "recipient" # Using already generated tomb
|
||||
test_expect_success 'Testing tomb with GnuPG keys: setkey' '
|
||||
tt forge $tomb_key_new -g -r $KEY2 --ignore-swap --unsafe &&
|
||||
@ -25,6 +26,7 @@ test_expect_success 'Testing tomb with GnuPG keys: setkey' '
|
||||
tt open -k $tomb_key_new $tomb -g &&
|
||||
tt_close
|
||||
'
|
||||
fi
|
||||
|
||||
if test_have_prereq SPHINX ORACLE; then
|
||||
test_export "sphinx_test" # Using already generated tomb
|
||||
|
@ -61,6 +61,8 @@ command -v doas > /dev/null && test_set_prereq DOAS
|
||||
|
||||
|
||||
# GnuPG config
|
||||
#test_set_prereq GPGRCPT
|
||||
if test_have_prereq GPGRCPT; then
|
||||
unset GNUPGHOME
|
||||
unset GPG_AGENT_INFO
|
||||
export GNUPGHOME="$TEST_HOME/gnupg/"
|
||||
@ -69,8 +71,8 @@ export KEY2="0B2235E660753AB0475FB3E23DC836481F44B31E"
|
||||
export SUBKEY1="D89BE71A935779961C130E50D9D7ACED39D3991C!"
|
||||
export SUBKEY2="843077BF7FD4A9C7BBFC3A69F065568B4F7D6CA9!"
|
||||
export KEY_UNTRUSTED="E6195F61F5EBA81FE4B1565AAC844B92004240CD"
|
||||
|
||||
chmod 700 "$GNUPGHOME"
|
||||
fi
|
||||
|
||||
|
||||
# Dummy passwords used in the tests suite
|
||||
|
Loading…
Reference in New Issue
Block a user