summaryrefslogtreecommitdiff
path: root/tests/libtest.sh
diff options
context:
space:
mode:
authorDenis Pynkin <denis.pynkin@collabora.com>2019-08-02 02:20:33 +0300
committerDenis Pynkin <denis.pynkin@collabora.com>2020-03-25 15:23:54 +0300
commit9e8f0f4ca0350cd43c202fe25b99900450e53406 (patch)
treefe002a3ca7b327045ef9679b665e7dc1616e6c6f /tests/libtest.sh
parentc09df184544ccd1921855abd072dcf186712376f (diff)
downloadostree-9e8f0f4ca0350cd43c202fe25b99900450e53406.tar.gz
tests: add test for commits sign/verification
Add tests checking: - sign mechanism is in working state - module 'dummy' is able to sign/verify commit - module 'ed25519' is able to sign/verify commit - both modules could be used for the same commit - 'ostree sign' builtin works with commits - 'ostree commit' builtin able to sign commits Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Diffstat (limited to 'tests/libtest.sh')
-rwxr-xr-xtests/libtest.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/libtest.sh b/tests/libtest.sh
index c82bf487..58a9fd9b 100755
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -673,6 +673,16 @@ which_gpg () {
echo ${gpg}
}
+has_libsodium () {
+ local ret
+ ${CMD_PREFIX} ostree --version > version.txt
+ grep -q -e '- libsodium' version.txt
+ ret=$?
+ rm -f version.txt
+ return ${ret}
+}
+
+
libtest_cleanup_gpg () {
local gpg_homedir=${1:-${test_tmpdir}/gpghome}
gpg-connect-agent --homedir "${gpg_homedir}" killagent /bye || true