From 8e923dfe36c9dea007f8ff709be3d47e5d5ef8e1 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sun, 18 Aug 2019 13:19:01 +0200 Subject: nixosTests.systemd: add fq_codel test --- nixos/tests/systemd.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nixos/tests/systemd.nix') 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"'); + }; ''; }) -- cgit 1.4.1