nixos/tests/oku: init

Changed files
+33 -1
nixos
pkgs
by-name
ok
+1
nixos/tests/all-tests.nix
···
imports = [ ./odoo.nix ];
_module.args.package = pkgs.odoo16;
};
+
oku = runTest ./oku.nix;
oncall = runTest ./web-apps/oncall.nix;
# 9pnet_virtio used to mount /nix partition doesn't support
# hibernation. This test happens to work on x86_64-linux but
+27
nixos/tests/oku.nix
···
+
{
+
lib,
+
pkgs,
+
...
+
}:
+
{
+
name = "oku";
+
+
meta.maintainers = with lib.maintainers; [ ethancedwards8 ];
+
+
nodes.machine = {
+
imports = [ ./common/x11.nix ];
+
+
environment.systemPackages = with pkgs; [ oku ];
+
};
+
+
enableOCR = true;
+
+
testScript = ''
+
machine.wait_for_x()
+
+
with subtest("Wait until Oku has finished loading the Valgrind docs page"):
+
machine.execute("xterm -e 'oku -n file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html' >&2 &");
+
machine.wait_for_window("oku")
+
'';
+
+
}
+5 -1
pkgs/by-name/ok/oku/package.nix
···
pango,
webkitgtk_6_0,
nix-update-script,
+
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
···
cp -r ${finalAttrs.src}/data/hicolor $out/share/icons
'';
-
passthru.updateScript = nix-update-script { };
+
passthru = {
+
updateScript = nix-update-script { };
+
tests = { inherit (nixosTests) oku; };
+
};
meta = {
description = "Browser for the Oku Network and Peer-to-peer sites";