aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-12-20 08:49:18 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-12-22 15:19:46 +0300
commit771ea1e81557ffe7af9cbdbec161601575b64d81 (patch)
tree39cd56c9e6f6620d0985a35f0f16c4dba2f2354a /src/lib.rs
parentd38bfc4affb27c04530fad98e12cedadcdd6a0f9 (diff)
downloadniri-771ea1e81557ffe7af9cbdbec161601575b64d81.tar.gz
niri-771ea1e81557ffe7af9cbdbec161601575b64d81.tar.bz2
niri-771ea1e81557ffe7af9cbdbec161601575b64d81.zip
Implement client-server test infra and window opening tests
These tests make a real Niri instance and real Wayland clients (via manual wayland-rs implementation), both on the same event loop local to the test. This allows testing the full Wayland interaction, including arbitrary event ordering and delays. To start off, add a massive powerset test for the settings that influence where a window may open.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index abce64a1..62d6eebf 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -28,3 +28,6 @@ pub mod pw_utils;
#[cfg(not(feature = "xdp-gnome-screencast"))]
pub use dummy_pw_utils as pw_utils;
+
+#[cfg(test)]
+mod tests;