mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixosTests.oxwm: init
This commit is contained in:
committed by
Sigmanificient
parent
6bf1ce5c11
commit
e362d9e670
@@ -1218,6 +1218,7 @@ in
|
||||
owi = runTest ./owi.nix;
|
||||
owncast = runTest ./owncast.nix;
|
||||
oxidized = handleTest ./oxidized.nix { };
|
||||
oxwm = runTestOn [ "x86_64-linux" "aarch64-linux" ] ./oxwm.nix;
|
||||
pacemaker = runTest ./pacemaker.nix;
|
||||
packagekit = runTest ./packagekit.nix;
|
||||
pairdrop = runTest ./web-apps/pairdrop.nix;
|
||||
|
||||
39
nixos/tests/oxwm.nix
Normal file
39
nixos/tests/oxwm.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
name = "oxwm";
|
||||
|
||||
meta = {
|
||||
maintainers = with lib.maintainers; [
|
||||
sigmanificient
|
||||
tonybanters
|
||||
];
|
||||
};
|
||||
|
||||
nodes.machine =
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./common/x11.nix
|
||||
./common/user-account.nix
|
||||
];
|
||||
test-support.displayManager.auto.user = "alice";
|
||||
services.displayManager.defaultSession = lib.mkForce "oxwm";
|
||||
services.xserver.windowManager.oxwm.enable = true;
|
||||
|
||||
environment.systemPackages = [ pkgs.alacritty ];
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
with subtest("ensure x starts"):
|
||||
machine.wait_for_x()
|
||||
machine.wait_for_file("/home/alice/.Xauthority")
|
||||
machine.succeed("xauth merge ~alice/.Xauthority")
|
||||
|
||||
with subtest("ensure we can open a new terminal"):
|
||||
machine.sleep(2)
|
||||
machine.send_key("meta_l-ret")
|
||||
machine.wait_for_window(r"alice.*?machine")
|
||||
machine.sleep(2)
|
||||
machine.screenshot("terminal")
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user