mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 06:51:51 +08:00
oqs-provider: add CI test
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 <cotequeiroz@gmail.com> [ use APK and improve commit title ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
committed by
Christian Marangi
parent
a0ddc9055f
commit
e3fc641115
Executable
+19
@@ -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
|
||||
Reference in New Issue
Block a user