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