veroroute.tests: Add NixOS VM test

This commit is contained in:
Niklas Hambüchen
2026-05-12 06:22:49 +02:00
parent f51b1ca50e
commit a6356e7ef3
3 changed files with 37 additions and 0 deletions
+1
View File
@@ -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; };
+31
View File
@@ -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")
'';
}
+5
View File
@@ -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";