Skip to content

Commit

Permalink
python-certifi: add github runtime test
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cotequeiroz committed Jul 28, 2023
1 parent 17e9fa2 commit 7c32a64
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lang/python/python-certifi/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/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
}
[ -f "$BUNDLE" ] || {
echo "Bundle file '$BUNDLE' not found." >&2
exit 1
}
;;
*)
echo "Unexpected package '$1'"
exit 1
;;
esac

0 comments on commit 7c32a64

Please sign in to comment.