summaryrefslogtreecommitdiff
path: root/tests/libtest.sh
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@collabora.com>2020-04-23 15:24:53 +0200
committerFrédéric Danis <frederic.danis@collabora.com>2020-09-14 09:27:19 +0200
commit96bcc25632fa0b1b4de637845bf43535f4eb3628 (patch)
tree99d9d478d9606452b154a20a01aa185db5d6f2a7 /tests/libtest.sh
parentc98a993c996713e16af8e36cbbde63f6000d1341 (diff)
downloadostree-96bcc25632fa0b1b4de637845bf43535f4eb3628.tar.gz
tests/libtest.sh: Add skip_without_sign_ed25519() function
Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Diffstat (limited to 'tests/libtest.sh')
-rwxr-xr-xtests/libtest.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/libtest.sh b/tests/libtest.sh
index ca457fa2..7c66a5c6 100755
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -700,6 +700,12 @@ has_sign_ed25519 () {
return ${ret}
}
+skip_without_sign_ed25519() {
+ if ! has_sign_ed25519; then
+ skip "no ed25519 support compiled in"
+ fi
+}
+
# Keys for ed25519 signing tests
ED25519PUBLIC=
ED25519SEED=