at 23.05-pre 537 B view raw
1import ./make-test-python.nix ({ lib, pkgs, ... }: { 2 name = "xpadneo"; 3 meta.maintainers = with lib.maintainers; [ kira-bruneau ]; 4 5 nodes = { 6 machine = { 7 config.hardware.xpadneo.enable = true; 8 }; 9 }; 10 11 # This is just a sanity check to make sure the module was 12 # loaded. We'd have to find some way to mock an xbox controller if 13 # we wanted more in-depth testing. 14 testScript = '' 15 machine.start(); 16 machine.succeed("modinfo hid_xpadneo | grep 'version:\s\+${pkgs.linuxPackages.xpadneo.version}'") 17 ''; 18})