3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/tests/kernel-latest-ath-user-regd.nix
Vincent Haupert fb3970ef7d 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.
2021-01-31 10:48:15 -05:00

18 lines
433 B
Nix

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")
'';
})