mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/xpadneo: add sanity test
This commit is contained in:
parent
216a21c638
commit
2a916b6c29
3 changed files with 30 additions and 1 deletions
|
@ -633,6 +633,7 @@ in {
|
|||
xfce = handleTest ./xfce.nix {};
|
||||
xmonad = handleTest ./xmonad.nix {};
|
||||
xmonad-xdg-autostart = handleTest ./xmonad-xdg-autostart.nix {};
|
||||
xpadneo = handleTest ./xpadneo.nix {};
|
||||
xrdp = handleTest ./xrdp.nix {};
|
||||
xss-lock = handleTest ./xss-lock.nix {};
|
||||
xterm = handleTest ./xterm.nix {};
|
||||
|
|
18
nixos/tests/xpadneo.nix
Normal file
18
nixos/tests/xpadneo.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
||||
name = "xpadneo";
|
||||
meta.maintainers = with lib.maintainers; [ kira-bruneau ];
|
||||
|
||||
nodes = {
|
||||
machine = {
|
||||
config.hardware.xpadneo.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# This is just a sanity check to make sure the module was
|
||||
# loaded. We'd have to find some way to mock an xbox controller if
|
||||
# we wanted more in-depth testing.
|
||||
testScript = ''
|
||||
machine.start();
|
||||
machine.succeed("modinfo hid_xpadneo | grep 'version:\s\+${pkgs.linuxPackages.xpadneo.version}'")
|
||||
'';
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue