about summary refs log tree commit diff
path: root/nixos/tests/sway.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-01-06nixos/tests/sway: fix alacritty xwayland testJörg Thalheim1-1/+1
if WAYLAND_DISPLAY is set to some invalid string than alacritty will exit with an error.
2023-07-24treewide: rename fonts.fonts to fonts.packagesSandro Jäckel1-1/+1
2023-06-21nixosTests.sway: don't timeout gpg-agentPatrick Hilhorst1-0/+7
2023-06-21nixosTests.sway: don't use ORCPatrick Hilhorst1-12/+54
2022-06-04nixos/tests/sway: skip type check for nowBobby Rong1-0/+6
2022-03-28treewide: machine -> nodes.machineRobert Hensing1-1/+1
2022-02-03nixosTests.sway: add swaylock testPatrick Hilhorst1-0/+7
2022-02-03nixosTests.sway: factor out swaymsgPatrick Hilhorst1-7/+11
2022-02-03nixosTests.sway: format with nixpkgs-fmtPatrick Hilhorst1-3/+1
2022-01-23sway: 1.6.1 -> 1.7Michael Weiss1-15/+32
Release notes: https://github.com/swaywm/sway/releases/tag/1.7 Notable (backward incompatible) changes: - The default terminal changed from Alacritty to foot Known issues: - `swaynag` will crash when Sway 1.6.1 is still running while the Nix package (and thus `swaynag`) is already updated to version 1.7. - The experimental Ozone/Wayland support of Electron apps will be broken for a while. Electron version 17 should work but the Chromium fixes haven't yet been backported to Electron version 16. NixOS module: programs.sway.extraPackages: The "alacritty" package was replaced with "foot". VM test: We switched from the OpenGL ES 2.0 renderer to Pixman. The terminal was also changed to foot but Alacritty is still used for the XWayland test (since foot doesn't support X11). Co-authored-by: Patrick Hilhorst <git@hilhorst.be>
2021-11-21nixos/qemu-vm: default memorySize 384 -> 1024Artturin1-1/+0
the default hasn't been changed since 2009 this can improve our test performances nixos/tests: remove explicit memorySize <1024 1024MiB is now the default
2021-06-25nixos/tests/sway: add check that sway quitsPatrick Hilhorst1-0/+2
We used to check that sway quits _succesfully_. However, since 73d7f08b4d89b1af213db5db34e6f39518d88634 disabled this, we'll add another check to see it quits _at all_. cc @primeos
2021-06-24sway: 1.6 -> 1.6.1Michael Weiss1-2/+7
Since wlroots 0.14 setting WLR_RENDERER_ALLOW_SOFTWARE=1 to allow software rendering is now enforced [0]. [0]: https://github.com/swaywm/wlroots/pull/2810
2021-05-27nixos/tests/{sway,cage,cagebreak}: Fix the tests on aarch64-linuxMichael Weiss1-2/+2
Since the update to wlroots 0.13 (e03dde82a74) the default VGA card isn't supported anymore and we needed to switch to virtio (qxl didn't work either). However, as it turned out "-vga virtio" (28b8cff301f) broke the test on AArch64. Luckily there's a third option that works on all three supported platforms: virtio-gpu-pci According to [0] "This device lacks VGA compatibility mode but is otherwise identical to the virtio vga device. UEFI firmware can handle this, and if your guests has drivers too you can use this instead of virtio-vga. This will reduce the attack surface (no complex VGA emulation support) and reduce the memory footprint by 8 MB (no pci memory bar for VGA compatibility). This device can be placed in a PCI Express slot." So in the end this seems like the ideal choice :) See also [1]. [0]: https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/#virtio-gpu-pci [1]: https://patches.openembedded.org/patch/164351/
2021-05-13nixos/tests/sway: test GPG's pinentry pop-upMichael Weiss1-0/+14
This test is important to confirm that $WAYLAND_DISPLAY is correctly imported via "dbus-update-activation-environment --systemd" which is done by default since #122605 (00e8e5b123f). It ensures that the gnome3-pinentry pop-ups work as expected to avoid regressions like #119445 (which also broke screen sharing).
2021-05-04nixos/tests/sway: initMichael Weiss1-0/+92
This adds a basic test for Sway. Because Sway is an important part of the Wayland ecosystem, is stable, and has few dependencies this test should also be suitable for testing core packages it depends on (e.g. wayland, wayland-protocols, wlroots, xwayland, mesa, libglvnd, libdrm, and soon libseat). The test is modeled after the suggested way of using Sway, i.e. logging in via a virtual console (tty1) and copying the configuration from /etc/sway/config (we replace Mod4 (the GNU/Tux key - you've replaced that evil logo, right? :D) with Mod1 (Alt key) because QEMU monitor's sendkey command doesn't support the former). The shell aliases are used to make the sendkey log output shorter. Co-authored-by: Patrick Hilhorst <git@hilhorst.be>