nixosTests.printing-{socket,service,socket-notcp,service-notcp}: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-16 14:55:07 +02:00
parent 8d74a87fa1
commit 46ddd0d906
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 135 additions and 134 deletions

View file

@ -1091,21 +1091,25 @@ in
pretalx = runTest ./web-apps/pretalx.nix;
prefect = runTest ./prefect.nix;
pretix = runTest ./web-apps/pretix.nix;
printing-socket = handleTest ./printing.nix {
socket = true;
listenTcp = true;
printing-socket = runTest {
imports = [ ./printing.nix ];
_module.args.socket = true;
_module.args.listenTcp = true;
};
printing-service = handleTest ./printing.nix {
socket = false;
listenTcp = true;
printing-service = runTest {
imports = [ ./printing.nix ];
_module.args.socket = false;
_module.args.listenTcp = true;
};
printing-socket-notcp = handleTest ./printing.nix {
socket = true;
listenTcp = false;
printing-socket-notcp = runTest {
imports = [ ./printing.nix ];
_module.args.socket = true;
_module.args.listenTcp = false;
};
printing-service-notcp = handleTest ./printing.nix {
socket = false;
listenTcp = false;
printing-service-notcp = runTest {
imports = [ ./printing.nix ];
_module.args.socket = false;
_module.args.listenTcp = false;
};
private-gpt = handleTest ./private-gpt.nix { };
privatebin = runTest ./privatebin.nix;

View file

@ -1,18 +1,16 @@
# Test printing via CUPS.
import ./make-test-python.nix (
{
{
pkgs,
socket ? true, # whether to use socket activation
listenTcp ? true, # whether to open port 631 on client
...
}:
}:
let
let
inherit (pkgs) lib;
in
in
{
{
name = "printing";
meta = with lib.maintainers; {
maintainers = [
@ -137,5 +135,4 @@ import ./make-test-python.nix (
# Otherwise, pairs of "c*"-"d*-001" files might persist.
server.execute("rm /var/spool/cups/*")
'';
}
)
}