Merge pull request #318 from roddhjav/master

Add test coverage for GPG subkeys support.
This commit is contained in:
Jaromil 2018-08-20 13:03:50 +02:00 committed by GitHub
commit a27f15aada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -32,6 +32,13 @@ test_expect_success 'Testing tomb with GnuPG keys using hidden recipient' '
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_expect_success 'Testing tomb with GnuPG keys and shared tomb' '
tt_dig -s 20 &&

View File

@ -5,7 +5,7 @@ export test_description="Tomb regression tests"
source ./setup
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}')
{ is-at-least "5.3" $zshversion } && TOMB_VERSION=("2.3")

View File

@ -60,6 +60,9 @@ unset GPG_AGENT_INFO
export GNUPGHOME="$TEST_HOME/gnupg/"
export KEY1="A4857CD176B31435F9709D25F0E573B8289439CD"
export KEY2="0B2235E660753AB0475FB3E23DC836481F44B31E"
export SUBKEY1="D89BE71A935779961C130E50D9D7ACED39D3991C!"
export SUBKEY2="843077BF7FD4A9C7BBFC3A69F065568B4F7D6CA9!"
chmod 700 "$GNUPGHOME"