about summary refs log tree commit diff
path: root/nixos/tests/systemd.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-08-18 13:19:01 +0200
committerFlorian Klink <flokli@flokli.de>2019-08-18 17:54:26 +0200
commit8e923dfe36c9dea007f8ff709be3d47e5d5ef8e1 (patch)
tree18176fefa3305378ef26f025c10ea6b2bbd0dd30 /nixos/tests/systemd.nix
parentbafc25691596caf2f6e034cbe5933fdd90a92b6a (diff)
nixosTests.systemd: add fq_codel test
Diffstat (limited to 'nixos/tests/systemd.nix')
-rw-r--r--nixos/tests/systemd.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/tests/systemd.nix b/nixos/tests/systemd.nix
index 344d675c5fe2d..3168c026d5140 100644
--- a/nixos/tests/systemd.nix
+++ b/nixos/tests/systemd.nix
@@ -83,5 +83,11 @@ import ./make-test.nix ({ pkgs, ... }: {
       $machine->waitForUnit('multi-user.target');
       $machine->succeed('test -e /tmp/shared/shutdown-test');
     };
+
+   # Test settings from /etc/sysctl.d/50-default.conf are applied
+   subtest "systemd sysctl settings are applied", sub {
+     $machine->waitForUnit('multi-user.target');
+     $machine->succeed('sysctl net.core.default_qdisc | grep -q "fq_codel"');
+   };
   '';
 })