nixos/tests/oku: init (#425960)

authored by Paul Haerle and committed by GitHub b02ff164 9f55bf76

+33 -1
+1
nixos/tests/all-tests.nix
··· 699 699 imports = [ ./odoo.nix ]; 700 700 _module.args.package = pkgs.odoo16; 701 701 }; 702 + oku = runTest ./oku.nix; 702 703 oncall = runTest ./web-apps/oncall.nix; 703 704 # 9pnet_virtio used to mount /nix partition doesn't support 704 705 # hibernation. This test happens to work on x86_64-linux but
+27
nixos/tests/oku.nix
··· 1 + { 2 + lib, 3 + pkgs, 4 + ... 5 + }: 6 + { 7 + name = "oku"; 8 + 9 + meta.maintainers = with lib.maintainers; [ ethancedwards8 ]; 10 + 11 + nodes.machine = { 12 + imports = [ ./common/x11.nix ]; 13 + 14 + environment.systemPackages = with pkgs; [ oku ]; 15 + }; 16 + 17 + enableOCR = true; 18 + 19 + testScript = '' 20 + machine.wait_for_x() 21 + 22 + with subtest("Wait until Oku has finished loading the Valgrind docs page"): 23 + machine.execute("xterm -e 'oku -n file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html' >&2 &"); 24 + machine.wait_for_window("oku") 25 + ''; 26 + 27 + }
+5 -1
pkgs/by-name/ok/oku/package.nix
··· 12 12 pango, 13 13 webkitgtk_6_0, 14 14 nix-update-script, 15 + nixosTests, 15 16 }: 16 17 17 18 rustPlatform.buildRustPackage (finalAttrs: { ··· 55 56 cp -r ${finalAttrs.src}/data/hicolor $out/share/icons 56 57 ''; 57 58 58 - passthru.updateScript = nix-update-script { }; 59 + passthru = { 60 + updateScript = nix-update-script { }; 61 + tests = { inherit (nixosTests) oku; }; 62 + }; 59 63 60 64 meta = { 61 65 description = "Browser for the Oku Network and Peer-to-peer sites";