tests: Add a second gpg keyring

tingping/wmclass
Alexander Larsson 2017-05-10 10:18:13 +02:00
parent b33d6fd04f
commit ec89340a26
5 changed files with 11 additions and 0 deletions

3
.gitignore vendored
View File

@ -78,6 +78,9 @@ Flatpak-1.0.*
/tests/test-keyring/.gpg-v21-migrated
/tests/test-keyring/private-keys-v1.d/
/tests/test-keyring/trustdb.gpg
/tests/test-keyring2/.gpg-v21-migrated
/tests/test-keyring2/private-keys-v1.d/
/tests/test-keyring2/trustdb.gpg
/tests/hello*.flatpak
/tests/platform*.flatpak
/tests/repo

View File

@ -170,12 +170,17 @@ assert_file_empty() {
}
export FL_GPG_HOMEDIR=${TEST_DATA_DIR}/gpghome
export FL_GPG_HOMEDIR2=${TEST_DATA_DIR}/gpghome2
mkdir -p ${FL_GPG_HOMEDIR}
mkdir -p ${FL_GPG_HOMEDIR2}
# This need to be writable, so copy the keys
cp $(dirname $0)/test-keyring/*.gpg ${FL_GPG_HOMEDIR}/
cp $(dirname $0)/test-keyring2/*.gpg ${FL_GPG_HOMEDIR2}/
export FL_GPG_ID=7B0961FD
export FL_GPG_ID2=B2314EFC
export FL_GPGARGS="--gpg-homedir=${FL_GPG_HOMEDIR} --gpg-sign=${FL_GPG_ID}"
export FL_GPGARGS2="--gpg-homedir=${FL_GPG_HOMEDIR2} --gpg-sign=${FL_GPG_ID2}"
setup_repo () {
REPONAME=${1:-test}

View File

@ -0,0 +1,3 @@
These are completely random keys, which include the secret key.
Use these for testing gpg signing, do *NOT* ever use these for any
real application.

Binary file not shown.

Binary file not shown.