tests: Add a second gpg keyring

This commit is contained in:
Alexander Larsson committed 2017-05-10 11:54:27 +02:00
1 parent b33d6fd04f
commit ec89340a26
5 files changed
+11

No files matched your search

+3
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
+5
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}
+3
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.