summary refs log tree commit diff
path: root/release/checks/wayland
Commit message (Collapse)AuthorAge
* release/checks/wayland: avoid unnecessary rebuildsAlyssa Ross2024-04-04
| | | | | | | Building surface-notify doesn't require any Spectrum sources outside of its own directory. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* release/checks/wayland: fix raceAlyssa Ross2024-04-04
| | | | | | | | | | | The test might not have opened /run/surface-notify by the time the surfaec appears. In that case, opening the file write-only would cause Weston to block, and cause a deadlock. On Linux, we can open the pipe read/write to have the open succeed immediately, avoiding this problem. Fixes: f76b542b ("release/checks/wayland: init") Signed-off-by: Alyssa Ross <hi@alyssa.is>
* release/checks/wayland: fix surface-notify errorsAlyssa Ross2024-04-04
| | | | | | | | Weston's log handler might do other things that set errno before evaluating the format strings, so %m can produce the wrong result. Fixes: f76b542b ("release/checks/wayland: init") Signed-off-by: Alyssa Ross <hi@alyssa.is>
* pkgs: use filesets for srcAlyssa Ross2023-12-17
| | | | | | | | This will make it possible later to specify which directories actually need to be present to build a component, so changing a single file somewhere won't force rebuilds of every Spectrum component. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* lib/nixpkgs.default.nix: update to nixos-unstableAlyssa Ross2023-12-16
| | | | | | New major version version. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* release/checks/wayland: fix false positivesAlyssa Ross2023-12-16
| | | | | | | | | | | Sometimes the application running inside the crosvm VM can commit between wc exiting and the VM being stopped. If this happens, there'll be an extra byte in the fifo, which will interfere with the second test. To fix this, recreate the fifo to ensure it's empty at the start of the Cloud Hypervisor test. Fixes: 5a5f892 ("release/checks/wayland: also test cloud-hypervisor") Signed-off-by: Alyssa Ross <hi@alyssa.is>
* lib/nixpkgs.default.nix: updateAlyssa Ross2023-12-16
| | | | | | cloud-hypervisor has changed back to the old CLI syntax again. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* Revert "vm: build command line into kernels"Alyssa Ross2023-12-05
| | | | | | | | | | | | | | | | | | This reverts commit 5f556f806a70f3787fe725254ccf3d245bd5bebc. This turns out to not really be workable on aarch64 at the moment, without giving things up — both crosvm and Cloud Hypervisor inject earlycon parameters onto the command line, which overrides the built-in command line. We could use CONFIG_CMDLINE_FORCE, but then we wouldn't know which serial console to use, because crosvm and Cloud Hypervisor both use different ones. There's discussion about making it possible to have the bootloader command line append to the built-in command line, but it's moving extremely slowly, so we can't count on it any time soon. Link: https://lore.kernel.org/lkml/20231110013817.2378507-1-danielwa@cisco.com/ Signed-off-by: Alyssa Ross <hi@alyssa.is>
* lib: adjust interface for Nix filesAlyssa Ross2023-11-26
| | | | | | | | | | | | | | | | | | | | | | | This moves every directly-buildable Nix file in Spectrum from the old eval-config.nix interface to a new callPackage-based interface. This moves us in the direction of stopping files from directly importing each other, in favor of having a global package set that contains the Spectrum-specific packages. Aside from consistency with packages from Nixpkgs, the main advantage to this is that the packages will be correctly spliced, and so e.g. lseek being in nativeBuildInputs will now do the right thing. This is implemented using a scope, so the Spectrum packages are invisible to Nixpkgs, and are applied on top afterwards, in contrast to if an overlay was used. Having a customised package set also paves the way for bringing modifications to upstream packages (e.g. the Cloud Hypervisor virtio-gpu patches) into the Spectrum repository, allowing us to use an unmodified upstream Nixpkgs. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* vm: build command line into kernelsAlyssa Ross2023-11-21
| | | | | | | | | | The kernel command line is policy, and shouldn't be hardcoded in start-vm. We could add a mechanism for customising it at some point (this would probably be helpful for custom VMs), but we don't need that at the moment, since for our built-in VMs we're using custom-configured kernels anyway. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* Use lib.getExe where possibleAlyssa Ross2023-09-27
| | | | Signed-off-by: Alyssa Ross <hi@alyssa.is>
* release/checks/wayland: use footAlyssa Ross2023-09-25
| | | | | | | | This is a more realistic test case, and it's more robust too, since we can look for a specific app ID rather than using a size-based heuristic. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* release/checks/wayland: fix Nix syntaxAlyssa Ross2023-09-25
| | | | | | Okay, we /really/ need to have shell.nix files be part of release.nix. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* release/checks/wayland: remove unnecessary #includeAlyssa Ross2023-09-25
| | | | | | <libweston/zalloc.h> is included by <libweston/libweston.h>. Signed-off-by: Alyssa Ross <hi@alyssa.is>
* release/checks/wayland: also test cloud-hypervisorAlyssa Ross2023-07-28
| | | | Signed-off-by: Alyssa Ross <hi@alyssa.is>
* release/checks/wayland: initAlyssa Ross2023-07-28
This is a smoke test for crosvm vhost-user-gpu. It starts Weston and the img/app VM in crosvm, and checks that the hello-wayland window from the VM appears, using a small Weston plugin. Hopefully this will make it easier to keep up with upstream crosvm, because testing crosvm versions can be automated. Signed-off-by: Alyssa Ross <hi@alyssa.is>