mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-11 07:30:56 +00:00
Merge pull request #318 from roddhjav/master
Add test coverage for GPG subkeys support.
This commit is contained in:
commit
a27f15aada
@ -32,6 +32,13 @@ test_expect_success 'Testing tomb with GnuPG keys using hidden recipient' '
|
|||||||
tt_lock -g -R $KEY1
|
tt_lock -g -R $KEY1
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_export "subkeys"
|
||||||
|
test_expect_success 'Testing tomb with GnuPG subkeys' '
|
||||||
|
tt_dig -s 20 &&
|
||||||
|
tt_forge -g -R $SUBKEY2 &&
|
||||||
|
tt_lock -g -R $SUBKEY2
|
||||||
|
'
|
||||||
|
|
||||||
test_export "shared"
|
test_export "shared"
|
||||||
test_expect_success 'Testing tomb with GnuPG keys and shared tomb' '
|
test_expect_success 'Testing tomb with GnuPG keys and shared tomb' '
|
||||||
tt_dig -s 20 &&
|
tt_dig -s 20 &&
|
||||||
|
@ -5,7 +5,7 @@ export test_description="Tomb regression tests"
|
|||||||
source ./setup
|
source ./setup
|
||||||
autoload -U is-at-least
|
autoload -U is-at-least
|
||||||
|
|
||||||
TOMB_VERSION=("2.3" "2.2" "2.0.1" "2.1")
|
TOMB_VERSION=("2.4" "2.3" "2.2" "2.0.1" "2.1")
|
||||||
zshversion=$(zsh --version | awk 'NR==1 {print $2}')
|
zshversion=$(zsh --version | awk 'NR==1 {print $2}')
|
||||||
{ is-at-least "5.3" $zshversion } && TOMB_VERSION=("2.3")
|
{ is-at-least "5.3" $zshversion } && TOMB_VERSION=("2.3")
|
||||||
|
|
||||||
|
@ -60,6 +60,9 @@ unset GPG_AGENT_INFO
|
|||||||
export GNUPGHOME="$TEST_HOME/gnupg/"
|
export GNUPGHOME="$TEST_HOME/gnupg/"
|
||||||
export KEY1="A4857CD176B31435F9709D25F0E573B8289439CD"
|
export KEY1="A4857CD176B31435F9709D25F0E573B8289439CD"
|
||||||
export KEY2="0B2235E660753AB0475FB3E23DC836481F44B31E"
|
export KEY2="0B2235E660753AB0475FB3E23DC836481F44B31E"
|
||||||
|
export SUBKEY1="D89BE71A935779961C130E50D9D7ACED39D3991C!"
|
||||||
|
export SUBKEY2="843077BF7FD4A9C7BBFC3A69F065568B4F7D6CA9!"
|
||||||
|
|
||||||
chmod 700 "$GNUPGHOME"
|
chmod 700 "$GNUPGHOME"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user