1import ./make-test-python.nix ({ lib, ... }: {
2 name = "archi";
3 meta.maintainers = with lib.maintainers; [ paumr ];
4
5 nodes.machine = { pkgs, ... }: {
6 imports = [
7 ./common/x11.nix
8 ];
9
10 environment.systemPackages = with pkgs; [ archi ];
11 };
12
13 enableOCR = true;
14
15 testScript = ''
16 machine.wait_for_x()
17
18 with subtest("createEmptyModel via CLI"):
19 machine.succeed("Archi -application com.archimatetool.commandline.app -consoleLog -nosplash --createEmptyModel --saveModel smoke.archimate")
20 machine.copy_from_vm("smoke.archimate", "")
21
22 with subtest("UI smoketest"):
23 machine.succeed("DISPLAY=:0 Archi --createEmptyModel >&2 &")
24 machine.wait_for_window("Archi")
25
26 # wait till main UI is open
27 machine.wait_for_text("Welcome to Archi")
28
29 machine.screenshot("welcome-screen")
30 '';
31})