mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
Add make-test-bundles.sh
This commit is contained in:
parent
0e595519c1
commit
aefb4b6b82
6
.gitignore
vendored
6
.gitignore
vendored
@ -60,3 +60,9 @@ XdgApp-1.0.*
|
||||
/test-doc-portal.trs
|
||||
/testdb.log
|
||||
/testdb.trs
|
||||
/tests/test-keyring/.gpg-v21-migrated
|
||||
/tests/test-keyring/private-keys-v1.d/
|
||||
/tests/test-keyring/trustdb.gpg
|
||||
/tests/hello*.xdgapp
|
||||
/tests/platform*.xdgapp
|
||||
/tests/repo
|
||||
|
||||
Binary file not shown.
26
tests/make-test-bundles.sh
Executable file
26
tests/make-test-bundles.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
./make-test-runtime.sh
|
||||
./make-test-app.sh
|
||||
|
||||
URL=file://`pwd`/repo
|
||||
|
||||
REF=`(cd repo/refs/heads; echo app/org.test.Hello/*/master)`
|
||||
|
||||
xdg-app build-bundle repo hello.xdgapp org.test.Hello
|
||||
xdg-app build-bundle repo hello-key.xdgapp --gpg-keys=test-keyring/pubring.gpg org.test.Hello
|
||||
xdg-app build-bundle repo --repo-url=${URL} hello-origin.xdgapp org.test.Hello
|
||||
xdg-app build-bundle repo --repo-url=${URL} --gpg-keys=test-keyring/pubring.gpg hello-key-origin.xdgapp org.test.Hello
|
||||
|
||||
ostree gpg-sign --repo=repo --gpg-homedir=test-keyring ${REF} 7B0961FD
|
||||
|
||||
xdg-app build-bundle repo hello-signed.xdgapp org.test.Hello
|
||||
xdg-app build-bundle repo hello-key-signed.xdgapp --gpg-keys=test-keyring/pubring.gpg org.test.Hello
|
||||
xdg-app build-bundle repo --repo-url=${URL} hello-origin-signed.xdgapp org.test.Hello
|
||||
xdg-app build-bundle repo --repo-url=${URL} --gpg-keys=test-keyring/pubring.gpg hello-key-origin-signed.xdgapp org.test.Hello
|
||||
|
||||
REF=`(cd repo/refs/heads; echo runtime/org.test.Platform/*/master)`
|
||||
ostree gpg-sign --repo=repo --gpg-homedir=test-keyring ${REF} 7B0961FD
|
||||
xdg-app build-bundle --runtime repo --repo-url=${URL} --gpg-keys=test-keyring/pubring.gpg platform.xdgapp org.test.Platform
|
||||
3
tests/test-keyring/README
Normal file
3
tests/test-keyring/README
Normal 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.
|
||||
BIN
tests/test-keyring/pubring.gpg
Normal file
BIN
tests/test-keyring/pubring.gpg
Normal file
Binary file not shown.
BIN
tests/test-keyring/secring.gpg
Normal file
BIN
tests/test-keyring/secring.gpg
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user