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 {};
|
ksm = handleTest ./ksm.nix {};
|
||||||
kthxbye = handleTest ./kthxbye.nix {};
|
kthxbye = handleTest ./kthxbye.nix {};
|
||||||
kubernetes = handleTestOn ["x86_64-linux"] ./kubernetes {};
|
kubernetes = handleTestOn ["x86_64-linux"] ./kubernetes {};
|
||||||
|
ladybird = handleTest ./ladybird.nix {};
|
||||||
languagetool = handleTest ./languagetool.nix {};
|
languagetool = handleTest ./languagetool.nix {};
|
||||||
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
|
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
|
||||||
leaps = handleTest ./leaps.nix {};
|
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
|
, makeWrapper
|
||||||
, qtbase
|
, qtbase
|
||||||
, qttools
|
, qttools
|
||||||
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let serenity = fetchFromGitHub {
|
let serenity = fetchFromGitHub {
|
||||||
|
@ -82,6 +83,10 @@ in gcc11Stdenv.mkDerivation {
|
||||||
# Stripping results in a symbol lookup error
|
# Stripping results in a symbol lookup error
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
nixosTest = nixosTests.ladybird;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A browser using the SerenityOS LibWeb engine with a Qt GUI";
|
description = "A browser using the SerenityOS LibWeb engine with a Qt GUI";
|
||||||
homepage = "https://github.com/awesomekling/ladybird";
|
homepage = "https://github.com/awesomekling/ladybird";
|
||||||
|
|
Loading…
Reference in a new issue