summaryrefslogtreecommitdiffstats
path: root/lang/python/python-ble2mqtt/test.sh
blob: 247f0a1c104f315d6bf2f07c7cbdfcc1fd63da2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

[ "$1" = python3-ble2mqtt ] || exit 0

python3 - << 'EOF'
import ble2mqtt
from ble2mqtt.devices.base import Device, ConnectionMode

assert hasattr(ble2mqtt, "__version__") or True  # version may not be exposed
assert issubclass(Device, object)

print("python3-ble2mqtt OK")
EOF