Commit e41c49f9 authored by Guido Gunther's avatar Guido Gunther
Browse files

Add more tests

parent bd84e0d3
def test_battery_charger():
assert("Good" in open("/sys/class/power_supply/bq25890-charger/health").read())
......@@ -3,4 +3,4 @@ import evdev
def test_gpio_keys():
"Test if we have a evdev named 'gpio-keys'"
devices = [evdev.InputDevice(path).name for path in evdev.list_devices()]
assert("gpio-keys" in devices)
assert("gpio-keys" in devices)
def test_gyro():
assert("lsm9ds1_gyro" in open('/sys/class/i2c-adapter/i2c-2/2-006a/iio:device0/name').read())
import subprocess
def test_usb_hub():
out = subprocess.check_output(["lsusb", "-d", "14cd:8601"])
assert(b"Super Top" in out)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment