3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests: add kernel-latest-ath-user-regd

Test for the option `networking.wireless.athUserRegulatoryDomain` to
make sure the underlying patch still applies for the latest kernel.

Also see NixOS/nixpkgs#108725.
This commit is contained in:
Vincent Haupert 2021-01-31 14:55:53 +01:00 committed by Tim Steinbach
parent 5ff6700bb8
commit fb3970ef7d
2 changed files with 18 additions and 0 deletions

View file

@ -189,6 +189,7 @@ in
kernel-latest = handleTest ./kernel-latest.nix {};
kernel-lts = handleTest ./kernel-lts.nix {};
kernel-testing = handleTest ./kernel-testing.nix {};
kernel-latest-ath-user-regd = handleTest ./kernel-latest-ath-user-regd.nix {};
keycloak = discoverTests (import ./keycloak.nix);
keymap = handleTest ./keymap.nix {};
knot = handleTest ./knot.nix {};

View file

@ -0,0 +1,17 @@
import ./make-test-python.nix ({ pkgs, ...} : {
name = "kernel-latest-ath-user-regd";
meta = with pkgs.lib.maintainers; {
maintainers = [ veehaitch ];
};
machine = { pkgs, ... }:
{
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.wireless.athUserRegulatoryDomain = true;
};
testScript =
''
assert "CONFIG_ATH_USER_REGD=y" in machine.succeed("zcat /proc/config.gz")
'';
})