From 4fddb8b9c3ee137f45ce3d3f79d5fb66c80843a0 Mon Sep 17 00:00:00 2001 From: Léo Gaspard Date: Thu, 12 Apr 2018 01:35:14 +0200 Subject: dovecot module: test dovecot's LDA That's apparently not enough to catch the bug I ran into with the update to 2.3.1, but at least it will check the LDA appears to work. --- nixos/tests/dovecot.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'nixos/tests') diff --git a/nixos/tests/dovecot.nix b/nixos/tests/dovecot.nix index 3814855ed8e7..156079d1d585 100644 --- a/nixos/tests/dovecot.nix +++ b/nixos/tests/dovecot.nix @@ -18,6 +18,18 @@ import ./make-test.nix { MAIL ''; + sendTestMailViaDeliveryAgent = pkgs.writeScriptBin "send-lda" '' + #!${pkgs.stdenv.shell} + + exec ${pkgs.dovecot}/libexec/dovecot/deliver -d bob <waitForUnit('postfix.service'); $machine->waitForUnit('dovecot2.service'); $machine->succeed('send-testmail'); + $machine->succeed('send-lda'); $machine->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]'); $machine->succeed('test-imap'); $machine->succeed('test-pop'); -- cgit 1.4.1