mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 01:58:35 +04:00
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>
(cherry picked from commit 219edcfa31)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
committed by
Jeffery To
parent
4fa7a76eda
commit
56bbcf7acb
18
lang/python/python-certifi/test.sh
Normal file
18
lang/python/python-certifi/test.sh
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user