mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Bump version 0.7.9 -> 0.9.5. Add test.sh to verify IPRoute, NDB, and nlmsg imports. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
15 lines
287 B
Bash
15 lines
287 B
Bash
#!/bin/sh
|
|
|
|
[ "$1" = python3-pyroute2 ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
from pyroute2 import IPRoute, NDB
|
|
from pyroute2.netlink import nlmsg
|
|
|
|
# Verify key classes are importable
|
|
assert callable(IPRoute)
|
|
assert callable(NDB)
|
|
assert issubclass(nlmsg, object)
|
|
|
|
print("python3-pyroute2 OK")
|
|
EOF |