summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobert Schütz <rschuetz17@gmail.com>2018-03-03 11:20:28 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-03-04 23:36:32 +0100
commit23d06c96651fb561eabc172317540b4be9ec13d1 (patch)
tree9fe4b1863231b9752cb9f08593419470dfee5d8b /tests
parent95dad50dcba6eeef7a86e663a859512350b3b76f (diff)
Add test for #94
Ensure that no warnings or errors are in the journal
Diffstat (limited to 'tests')
-rw-r--r--tests/extern.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/extern.nix b/tests/extern.nix
index f29acc2..32af471 100644
--- a/tests/extern.nix
+++ b/tests/extern.nix
@@ -249,5 +249,12 @@ import <nixpkgs/nixos/tests/make-test.nix> {
};
+ subtest "no warnings or errors", sub {
+ $server->fail("journalctl -u postfix | grep -i error");
+ $server->fail("journalctl -u postfix | grep -i warning");
+ $server->fail("journalctl -u dovecot2 | grep -i error");
+ $server->fail("journalctl -u dovecot2 | grep -i warning");
+ };
+
'';
}