nixos/tests/archi: init smoke tests for Archi
This commit is contained in:
@@ -124,6 +124,7 @@ in {
|
|||||||
apfs = runTest ./apfs.nix;
|
apfs = runTest ./apfs.nix;
|
||||||
appliance-repart-image = runTest ./appliance-repart-image.nix;
|
appliance-repart-image = runTest ./appliance-repart-image.nix;
|
||||||
apparmor = handleTest ./apparmor.nix {};
|
apparmor = handleTest ./apparmor.nix {};
|
||||||
|
archi = handleTest ./archi.nix {};
|
||||||
atd = handleTest ./atd.nix {};
|
atd = handleTest ./atd.nix {};
|
||||||
atop = handleTest ./atop.nix {};
|
atop = handleTest ./atop.nix {};
|
||||||
atuin = handleTest ./atuin.nix {};
|
atuin = handleTest ./atuin.nix {};
|
||||||
|
|||||||
31
nixos/tests/archi.nix
Normal file
31
nixos/tests/archi.nix
Normal file
@@ -0,0 +1,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")
|
||||||
|
'';
|
||||||
|
})
|
||||||
@@ -7,6 +7,8 @@
|
|||||||
, webkitgtk
|
, webkitgtk
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, _7zz
|
, _7zz
|
||||||
|
, archi
|
||||||
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@@ -64,6 +66,8 @@ stdenv.mkDerivation rec {
|
|||||||
mv Archi.app "$out/Applications/"
|
mv Archi.app "$out/Applications/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests) archi; };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "ArchiMate modelling toolkit";
|
description = "ArchiMate modelling toolkit";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user