nixosTests.ladybird: init
This commit is contained in:
parent
fb7bfd4970
commit
2c81cda2f6
3 changed files with 36 additions and 0 deletions
|
@ -279,6 +279,7 @@ in {
|
|||
ksm = handleTest ./ksm.nix {};
|
||||
kthxbye = handleTest ./kthxbye.nix {};
|
||||
kubernetes = handleTestOn ["x86_64-linux"] ./kubernetes {};
|
||||
ladybird = handleTest ./ladybird.nix {};
|
||||
languagetool = handleTest ./languagetool.nix {};
|
||||
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
|
||||
leaps = handleTest ./leaps.nix {};
|
||||
|
|
30
nixos/tests/ladybird.nix
Normal file
30
nixos/tests/ladybird.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
import ./make-test-python.nix ({ pkgs, ... }: {
|
||||
name = "ladybird";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ fgaz ];
|
||||
};
|
||||
|
||||
nodes.machine = { config, pkgs, ... }: {
|
||||
imports = [
|
||||
./common/x11.nix
|
||||
];
|
||||
|
||||
services.xserver.enable = true;
|
||||
environment.systemPackages = [
|
||||
pkgs.ladybird
|
||||
];
|
||||
};
|
||||
|
||||
enableOCR = true;
|
||||
|
||||
testScript =
|
||||
''
|
||||
machine.wait_for_x()
|
||||
machine.succeed("echo '<!DOCTYPE html><html><body><h1>Hello world</h1></body></html>' > page.html")
|
||||
machine.execute("ladybird file://$(pwd)/page.html >&2 &")
|
||||
machine.wait_for_window("Ladybird")
|
||||
machine.sleep(5)
|
||||
machine.wait_for_text("Hello world")
|
||||
machine.screenshot("screen")
|
||||
'';
|
||||
})
|
|
@ -8,6 +8,7 @@
|
|||
, makeWrapper
|
||||
, qtbase
|
||||
, qttools
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
let serenity = fetchFromGitHub {
|
||||
|
@ -82,6 +83,10 @@ in gcc11Stdenv.mkDerivation {
|
|||
# Stripping results in a symbol lookup error
|
||||
dontStrip = true;
|
||||
|
||||
passthru.tests = {
|
||||
nixosTest = nixosTests.ladybird;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A browser using the SerenityOS LibWeb engine with a Qt GUI";
|
||||
homepage = "https://github.com/awesomekling/ladybird";
|
||||
|
|
Loading…
Reference in a new issue