From 7f414b1725f653bb271fa8d4ce07a4fa526617f6 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sat, 21 Nov 2020 18:41:36 +0100 Subject: [PATCH] WiP! lighttpd --- tests/lighttpd.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tests/lighttpd.nix b/tests/lighttpd.nix index 66fc66a..9396140 100644 --- a/tests/lighttpd.nix +++ b/tests/lighttpd.nix @@ -1,8 +1,18 @@ { name = "lighttpd"; - machine = { pkgs, ... }: { - imports = [ ../nixos-modules/systemd.nix ]; + + nodes.server = { pkgs, ... }: { + imports = [ ../nixos-modules/hardware.nix ../nixos-modules/systemd.nix ]; + networking.interfaces.eth1.genode.stack = "lwip"; services.lighttpd.enable = true; - systemd.services.lighttpd.genode.enable = true; + systemd.services.lighttpd.genode = { + enable = true; + interface = "eth1"; + }; }; + + testScript = '' + server.start() + server.wait_until_serial_output('lwIP Nic interface up address=192.168.1.2') + ''; }