1 import ./make-test-python.nix ( { pkgs, ... }: let
4 name = "opentabletdriver";
6 maintainers = with pkgs.lib.maintainers; [ thiagokokada ];
9 nodes.machine = { pkgs, ... }:
12 ./common/user-account.nix
15 test-support.displayManager.auto.user = testUser;
16 hardware.opentabletdriver.enable = true;
24 machine.wait_for_unit('graphical.target')
25 machine.wait_for_unit("opentabletdriver.service", "${testUser}")
27 machine.succeed("cat /etc/udev/rules.d/70-opentabletdriver.rules")
28 # Will fail if service is not running
29 # Needs to run as the same user that started the service
30 machine.succeed("su - ${testUser} -c 'otd detect'")