0
0
mirror of https://github.com/openwrt/packages.git synced 2025-01-31 03:41:44 +00:00
Eneas U de Queiroz 219edcfa31 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>
2023-07-28 10:39:18 -03:00

19 lines
290 B
Bash

#!/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