aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-15 04:57:37 +0900
committerOphestra <cat@gensokyo.uk>2025-08-15 05:16:51 +0900
commit4ffeec3004607b76f73e504da220a1490c598348 (patch)
tree68cca16c22814b13974db0f19c151f8eb31e2dae /test
parent9ed3ba85eaba4bc4bd12b290dc4daf00ffe159dc (diff)
hst/enablement: editor friendly enablement adaptor
Having the bit field value here (in decimal, no less) is unfriendly to text editors. Use a bunch of booleans here to improve ease of use. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test')
-rw-r--r--test/configuration.nix12
-rw-r--r--test/interactive/hakurei.nix2
-rw-r--r--test/test.py10
3 files changed, 12 insertions, 12 deletions
diff --git a/test/configuration.nix b/test/configuration.nix
index 2c848bc1..b7970dd9 100644
--- a/test/configuration.nix
+++ b/test/configuration.nix
@@ -126,7 +126,7 @@
wayland-utils
];
command = "foot";
- capability = {
+ enablements = {
dbus = false;
pulse = false;
};
@@ -141,7 +141,7 @@
share = pkgs.foot;
packages = [ ];
command = "foot";
- capability = {
+ enablements = {
dbus = false;
pulse = false;
};
@@ -154,7 +154,7 @@
share = pkgs.foot;
packages = [ pkgs.foot ];
command = "foot";
- capability.dbus = false;
+ enablements.dbus = false;
};
"cat.gensokyo.extern.Alacritty.x11" = {
@@ -171,7 +171,7 @@
mesa-demos
];
command = "alacritty";
- capability = {
+ enablements = {
wayland = false;
x11 = true;
dbus = false;
@@ -192,7 +192,7 @@
wayland-utils
];
command = "foot";
- capability = {
+ enablements = {
dbus = false;
pulse = false;
};
@@ -204,7 +204,7 @@
verbose = true;
share = pkgs.strace;
command = "strace true";
- capability = {
+ enablements = {
wayland = false;
x11 = false;
dbus = false;
diff --git a/test/interactive/hakurei.nix b/test/interactive/hakurei.nix
index 3c96b3c9..887ed3e2 100644
--- a/test/interactive/hakurei.nix
+++ b/test/interactive/hakurei.nix
@@ -13,7 +13,7 @@
share = pkgs.foot;
packages = [ pkgs.foot ];
command = "foot";
- capability = {
+ enablements = {
dbus = false;
pulse = false;
};
diff --git a/test/test.py b/test/test.py
index d0252cfd..c02766c7 100644
--- a/test/test.py
+++ b/test/test.py
@@ -206,7 +206,7 @@ wait_for_window(f"u0_a{aid(0)}@machine")
machine.send_chars("clear; wayland-info && touch /tmp/client-ok\n")
machine.wait_for_file(tmpdir_path(0, "client-ok"), timeout=15)
collect_state_ui("foot_wayland")
-check_state("ne-foot", 1)
+check_state("ne-foot", {"wayland": True})
# Verify lack of acl on XDG_RUNTIME_DIR:
machine.fail(f"getfacl --absolute-names --omit-header --numeric /run/user/1000 | grep {aid(0) + 1000000}")
machine.send_chars("exit\n")
@@ -219,7 +219,7 @@ wait_for_window(f"u0_a{aid(1)}@machine")
machine.send_chars("clear; pactl info && touch /tmp/pulse-ok\n")
machine.wait_for_file(tmpdir_path(1, "pulse-ok"), timeout=15)
collect_state_ui("pulse_wayland")
-check_state("pa-foot", 9)
+check_state("pa-foot", {"wayland": True, "pulse": True})
machine.send_chars("exit\n")
machine.wait_until_fails("pgrep foot", timeout=5)
@@ -229,7 +229,7 @@ wait_for_window(f"u0_a{aid(0)}@machine")
machine.send_chars("clear; glinfo && touch /tmp/x11-ok\n")
machine.wait_for_file(tmpdir_path(0, "x11-ok"), timeout=15)
collect_state_ui("alacritty_x11")
-check_state("x11-alacritty", 2)
+check_state("x11-alacritty", {"x11": True})
machine.send_chars("exit\n")
machine.wait_until_fails("pgrep alacritty", timeout=5)
@@ -239,7 +239,7 @@ wait_for_window(f"u0_a{aid(3)}@machine")
machine.send_chars("clear; wayland-info && touch /tmp/direct-ok\n")
collect_state_ui("foot_direct")
machine.wait_for_file(tmpdir_path(3, "direct-ok"), timeout=15)
-check_state("da-foot", 1)
+check_state("da-foot", {"wayland": True})
# Verify acl on XDG_RUNTIME_DIR:
print(machine.succeed(f"getfacl --absolute-names --omit-header --numeric /run/user/1000 | grep {aid(3) + 1000000}"))
machine.send_chars("exit\n")
@@ -259,7 +259,7 @@ machine.send_key("alt-h")
machine.send_chars("clear; hakurei show $(hakurei ps --short) && touch /tmp/ps-show-ok && exec cat\n")
machine.wait_for_file("/tmp/ps-show-ok", timeout=5)
collect_state_ui("foot_wayland_term")
-check_state("ne-foot", 1)
+check_state("ne-foot", {"wayland": True})
machine.send_key("alt-l")
machine.send_chars("exit\n")
wait_for_window("alice@machine")