mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
nixos/tests/servo: init
This commit is contained in:
parent
f9cdf0eaae
commit
f962ad853b
3 changed files with 36 additions and 1 deletions
|
@ -953,6 +953,7 @@ in {
|
||||||
seatd = handleTest ./seatd.nix {};
|
seatd = handleTest ./seatd.nix {};
|
||||||
send = runTest ./send.nix;
|
send = runTest ./send.nix;
|
||||||
service-runner = handleTest ./service-runner.nix {};
|
service-runner = handleTest ./service-runner.nix {};
|
||||||
|
servo = runTest ./servo.nix;
|
||||||
shadps4 = runTest ./shadps4.nix;
|
shadps4 = runTest ./shadps4.nix;
|
||||||
sftpgo = runTest ./sftpgo.nix;
|
sftpgo = runTest ./sftpgo.nix;
|
||||||
sfxr-qt = handleTest ./sfxr-qt.nix {};
|
sfxr-qt = handleTest ./sfxr-qt.nix {};
|
||||||
|
|
28
nixos/tests/servo.nix
Normal file
28
nixos/tests/servo.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
name = "servo";
|
||||||
|
|
||||||
|
meta.maintainers = with lib.maintainers; [ hexa ];
|
||||||
|
|
||||||
|
nodes.machine = {
|
||||||
|
imports = [ ./common/x11.nix ];
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [ servo ];
|
||||||
|
};
|
||||||
|
|
||||||
|
enableOCR = true;
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
machine.wait_for_x()
|
||||||
|
|
||||||
|
with subtest("Wait until Servo has finished loading the Valgrind docs page"):
|
||||||
|
machine.execute("xterm -e 'servo file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html' >&2 &");
|
||||||
|
machine.wait_for_window("Valgrind")
|
||||||
|
machine.wait_for_text("Quick Start Guide")
|
||||||
|
'';
|
||||||
|
|
||||||
|
}
|
|
@ -36,6 +36,9 @@
|
||||||
vulkan-loader,
|
vulkan-loader,
|
||||||
wayland,
|
wayland,
|
||||||
xorg,
|
xorg,
|
||||||
|
|
||||||
|
# tests
|
||||||
|
nixosTests,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -143,7 +146,10 @@ rustPlatform.buildRustPackage {
|
||||||
--prefix LD_LIBRARY_PATH : ${runtimePaths}
|
--prefix LD_LIBRARY_PATH : ${runtimePaths}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = ./update.sh;
|
passthru = {
|
||||||
|
updateScript = ./update.sh;
|
||||||
|
tests = { inherit (nixosTests) servo; };
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "The embeddable, independent, memory-safe, modular, parallel web rendering engine";
|
description = "The embeddable, independent, memory-safe, modular, parallel web rendering engine";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue