mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Bump version 0.131.0 -> 0.148.0. Add test.sh to verify ServiceInfo construction and attribute access. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
20 lines
430 B
Bash
20 lines
430 B
Bash
#!/bin/sh
|
|
|
|
[ "$1" = python3-zeroconf ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
from zeroconf import Zeroconf, ServiceInfo, ServiceBrowser
|
|
import socket
|
|
|
|
# Verify core classes are importable and instantiable
|
|
info = ServiceInfo(
|
|
"_http._tcp.local.",
|
|
"Test._http._tcp.local.",
|
|
addresses=[socket.inet_aton("127.0.0.1")],
|
|
port=80,
|
|
)
|
|
assert info.port == 80
|
|
assert info.type == "_http._tcp.local."
|
|
|
|
print("python3-zeroconf OK")
|
|
EOF |