-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There's no negative test due to runner limitations. I tried to hack on the runner for a bit but it got out of scope and I'm not interested in learning more Python. My 'fork' of nixpkgs has a logiops-nixos-xtra branch for anyone interested in poking the testing more.
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import ./make-test-python.nix ({ pkgs, lib, ... }: { | ||
name = "logiops"; | ||
meta = with pkgs.lib.maintainers; { | ||
maintainers = [ ckie ]; | ||
}; | ||
|
||
nodes = { | ||
main = { ... }: { | ||
services.logiops = { | ||
enable = true; | ||
|
||
settings = { | ||
devices = [{ | ||
name = "Wireless Mouse MX Master 3"; | ||
|
||
smartshift = { | ||
on = true; | ||
threshold = 20; | ||
}; | ||
|
||
hiresscroll = { | ||
hires = true; | ||
invert = false; | ||
target = false; | ||
}; | ||
|
||
dpi = 1500; | ||
|
||
buttons = [ | ||
{ | ||
cid = "0x53"; | ||
action = { | ||
type = "Keypress"; | ||
keys = [ "KEY_FORWARD" ]; | ||
}; | ||
} | ||
{ | ||
cid = "0x56"; | ||
action = { | ||
type = "Keypress"; | ||
keys = [ "KEY_BACK" ]; | ||
}; | ||
} | ||
]; | ||
}]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
testScript = '' | ||
start_all() | ||
with subtest("main machine should succeed"): | ||
main.wait_for_unit("logid.service") | ||
''; | ||
}) |