veroroute.tests: Add NixOS VM test
This commit is contained in:
@@ -1743,6 +1743,7 @@ in
|
||||
vector = import ./vector { inherit runTest; };
|
||||
velocity = runTest ./velocity.nix;
|
||||
vengi-tools = runTest ./vengi-tools.nix;
|
||||
veroroute = runTest ./veroroute.nix;
|
||||
victorialogs = import ./victorialogs { inherit runTest; };
|
||||
victoriametrics = import ./victoriametrics { inherit runTest; };
|
||||
victoriatraces = import ./victoriatraces { inherit runTest; };
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
name = "veroroute";
|
||||
meta.maintainers = with pkgs.lib.maintainers; [ nh2 ];
|
||||
|
||||
enableOCR = true;
|
||||
|
||||
nodes.machine =
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./common/x11.nix
|
||||
];
|
||||
|
||||
services.xserver.enable = true;
|
||||
environment.systemPackages = [
|
||||
pkgs.veroroute
|
||||
pkgs.xdotool
|
||||
];
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
machine.wait_for_x()
|
||||
|
||||
machine.execute("veroroute >&2 &")
|
||||
machine.wait_until_succeeds("xdotool search --pid $(pidof veroroute)")
|
||||
machine.wait_for_text("File") # menu entry renders correctly
|
||||
machine.screenshot("screen")
|
||||
'';
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
stdenv,
|
||||
fetchurl,
|
||||
libsForQt5,
|
||||
nixosTests,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -26,6 +27,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cd Src/
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
veroroute = nixosTests.veroroute;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Qt based Veroboard/Perfboard/PCB layout and routing application";
|
||||
homepage = "https://sourceforge.net/projects/veroroute";
|
||||
|
||||
Reference in New Issue
Block a user