Skip to content
Snippets Groups Projects
Commit 11623f3d authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

Add first tests

parent 5ec478ea
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,8 @@ Depends:
${misc:Depends},
${shlibs:Depends},
i2c-tools,
pytest-3,
python3-evdev,
usb-modeswitch,
usbutils,
Description: Check script for the librem5-evk (devkit)
......
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)
import evdev
def test_panel_brightness():
"Check if current panel brighness is in [0..9]"
f = open("/sys/class/backlight/backlight_dsi/brightness")
assert int(f.read()) in range(0,10)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment