forge
Explore
Log in

Don't you dare go Hollow

Improve filtering for tests that need EGL

Browse files at this commit

082d0581b76e280b3d26f2f01695a291f6f55f39Ivan MolodetskikhParent: fd6dd82
This way we don't skip the layout animation tests.
docs/wiki/Packaging-niri.mdmodified+7 -0
@@ -44,6 +44,13 @@ $ export RAYON_NUM_THREADS=2
4444
4545 Don't forget to exclude the development-only `niri-visual-tests` crate when running tests.
4646
47+Some tests require surfaceless EGL to be available at test time.
48+If this is problematic, you can skip them like so:
49+
50+```
51+$ cargo test -- --skip=::egl
52+```
53+
4754 You may also want to set the `RUN_SLOW_TESTS=1` environment variable to run the slower tests.
4855
4956 ### Version string
flake.nixmodified+1 -1
@@ -118,7 +118,7 @@
118118 checkFlags = [
119119 # These tests require the ability to access a "valid EGL Display", but that won't work
120120 # inside the Nix sandbox
121- "--skip=tests::animations"
121+ "--skip=::egl"
122122 ];
123123
124124 postInstall =
src/tests/animations.rsmodified+2 -2
@@ -124,7 +124,7 @@ fn set_up_two_in_column() -> (Fixture, ClientId, WlSurface, WlSurface) {
124124 }
125125
126126 #[test]
127-fn height_resize_animates_next_y() {
127+fn egl_height_resize_animates_next_y() {
128128 let (mut f, id, surface1, surface2) = set_up_two_in_column();
129129
130130 // Issue a resize.
@@ -171,7 +171,7 @@ fn height_resize_animates_next_y() {
171171 }
172172
173173 #[test]
174-fn clientside_height_change_doesnt_animate() {
174+fn egl_clientside_height_change_doesnt_animate() {
175175 let (mut f, id, surface1, _surface2) = set_up_two_in_column();
176176
177177 // The initial state.