about summary refs log tree commit diff
path: root/nixos/tests/kernel-latest-ath-user-regd.nix
diff options
context:
space:
mode:
authorVincent Haupert <mail@vincent-haupert.de>2021-01-31 14:55:53 +0100
committerTim Steinbach <NeQuissimus@users.noreply.github.com>2021-01-31 10:48:15 -0500
commitfb3970ef7d144525dfcd1c39c0d0d122d248b185 (patch)
tree69a0b3eff2b0a1dc36e5c7cf4179800b04be1741 /nixos/tests/kernel-latest-ath-user-regd.nix
parent5ff6700bb824a6d824fa021550a5596f6c3f64e7 (diff)
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.
Diffstat (limited to 'nixos/tests/kernel-latest-ath-user-regd.nix')
-rw-r--r--nixos/tests/kernel-latest-ath-user-regd.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/nixos/tests/kernel-latest-ath-user-regd.nix b/nixos/tests/kernel-latest-ath-user-regd.nix
new file mode 100644
index 0000000000000..11a3959e692e9
--- /dev/null
+++ b/nixos/tests/kernel-latest-ath-user-regd.nix
@@ -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")
+    '';
+})