oqs-provider: add CI test
authorEneas U de Queiroz <[email protected]>
Thu, 13 Nov 2025 21:08:06 +0000 (18:08 -0300)
committerChristian Marangi <[email protected]>
Tue, 18 Nov 2025 12:48:01 +0000 (13:48 +0100)
This runs a couple of openssl commands to verify that the provider is
loading and generate a private key, without any output checks.

Signed-off-by: Eneas U de Queiroz <[email protected]>
[ use APK and improve commit title ]
Signed-off-by: Christian Marangi <[email protected]>
libs/oqs-provider/test.sh [new file with mode: 0755]

diff --git a/libs/oqs-provider/test.sh b/libs/oqs-provider/test.sh
new file mode 100755 (executable)
index 0000000..030768e
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+test_oqsprovider() {
+       RET=0
+       apk add openssl-util
+       openssl list -all-algorithms | grep oqsprovider || RET=1
+       openssl genpkey -verbose -algorithm mayo1 -text || RET=1
+       exit $RET
+}
+
+case "$1" in
+       libopenssl-oqsprovider)
+               test_oqsprovider
+               ;;
+       *)
+               echo "Unexpected package '$1'" >&2
+               exit 1
+               ;;
+esac