From 90c080e455ccd8c9239b40b48960e3a99b11d928 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 11 Dec 2015 05:26:42 +0100 Subject: modules: Add a few basic NixOS networking tests. This is basically just to get started and for testing whether our idea will actually work out as planned. My gut feeling is that Hydra explicitly needs jobs for these tests, but we'll see. Signed-off-by: aszlig --- modules/profiles/tests.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/profiles/tests.nix (limited to 'modules/profiles/tests.nix') diff --git a/modules/profiles/tests.nix b/modules/profiles/tests.nix new file mode 100644 index 00000000..66ea76e5 --- /dev/null +++ b/modules/profiles/tests.nix @@ -0,0 +1,15 @@ +{ config, lib, tests, ... }: + +with lib; + +let + which = if config.networking.useNetworkd then "networkd" else "scripted"; + networkTests = map (attr: getAttr attr tests.nixos.networking.${which}) [ + "static" "dhcpSimple" "dhcpOneIf" "bond" "bridge" "macvlan" "sit" "vlan" + ]; + +in { + config = { + vuizvui.requiresTests = networkTests; + }; +} -- cgit 1.4.1