1 { system ? builtins.currentSystem
3 , pkgs ? import ../../.. { inherit system config; }
4 # Test current default (LTS) and latest kernel
5 , kernelVersionsToTest ? [ (pkgs.lib.versions.majorMinor pkgs.linuxPackages.kernel.version) "latest" ]
11 tests = let callTest = p: args: import p ({ inherit system pkgs; } // args); in {
12 basic = callTest ./basic.nix;
13 namespaces = callTest ./namespaces.nix;
14 wg-quick = callTest ./wg-quick.nix;
15 wg-quick-nftables = args: callTest ./wg-quick.nix ({ nftables = true; } // args);
16 generated = callTest ./generated.nix;
21 flip concatMap kernelVersionsToTest (version:
23 v' = replaceStrings [ "." ] [ "_" ] version;
25 flip mapAttrsToList tests (name: test:
26 nameValuePair "wireguard-${name}-linux-${v'}" (test { kernelPackages = pkgs."linuxPackages_${v'}"; })