mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Bump version 23.1.0 -> 24.2.0. Add test.sh to verify module imports and key symbols. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
15 lines
417 B
Bash
15 lines
417 B
Bash
#!/bin/sh
|
|
|
|
[ "$1" = python3-service-identity ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
from service_identity import VerificationError
|
|
from service_identity.pyopenssl import verify_hostname, verify_ip_address
|
|
|
|
# Just verify the module imports and key symbols are present
|
|
assert callable(verify_hostname)
|
|
assert callable(verify_ip_address)
|
|
assert issubclass(VerificationError, Exception)
|
|
|
|
print("python3-service-identity OK")
|
|
EOF |