aboutsummaryrefslogtreecommitdiff
path: root/lang/python/python-certifi
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2023-07-27 16:51:39 -0300
committerEneas U de Queiroz <cotequeiroz@gmail.com>2023-07-28 10:39:18 -0300
commit219edcfa31ed2c55dc6bc4af049c92451157cf23 (patch)
treef0cc9d5eea2fb0393d53621263f8540ca7e9b3cb /lang/python/python-certifi
parent0309bfd56f1101fea61f6b6ec179efa7a8811b8b (diff)
python-certifi: add github runtime test
This loads the module, which should return the path of the CA bundle and verifies that the file exists. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'lang/python/python-certifi')
-rw-r--r--lang/python/python-certifi/test.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/python/python-certifi/test.sh b/lang/python/python-certifi/test.sh
new file mode 100644
index 000000000..b2802165b
--- /dev/null
+++ b/lang/python/python-certifi/test.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+case "$1" in
+ *-src)
+ ;;
+ python3-certifi)
+ BUNDLE=$(python3 -m certifi) || {
+ echo "Failed to run the certfi module script. Exit status=$?." >&2
+ echo "Output='$BUNDLE'" >&2
+ exit 1
+ }
+ ls -l "$BUNDLE"
+ ;;
+ *)
+ echo "Unexpected package '$1'" >&2
+ exit 1
+ ;;
+esac