about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Steinbach <tim@nequissimus.com>2021-04-07 12:11:32 -0400
committerTim Steinbach <NeQuissimus@users.noreply.github.com>2021-04-08 09:00:15 -0400
commit621a979bfe1d53f77501ed5b6ba52851e65544c8 (patch)
treee4d72a4d54f873599ebb1163a4451ae6811452d7
parent060e94136f637f084e3b6b3985b9366cf918d2c0 (diff)
downloadnixlib-621a979bfe1d53f77501ed5b6ba52851e65544c8.tar
nixlib-621a979bfe1d53f77501ed5b6ba52851e65544c8.tar.gz
nixlib-621a979bfe1d53f77501ed5b6ba52851e65544c8.tar.bz2
nixlib-621a979bfe1d53f77501ed5b6ba52851e65544c8.tar.lz
nixlib-621a979bfe1d53f77501ed5b6ba52851e65544c8.tar.xz
nixlib-621a979bfe1d53f77501ed5b6ba52851e65544c8.tar.zst
nixlib-621a979bfe1d53f77501ed5b6ba52851e65544c8.zip
kernel: Add test for 4.19
-rw-r--r--nixos/tests/kernel-generic.nix1
-rw-r--r--pkgs/os-specific/linux/kernel/linux-4.19.nix4
2 files changed, 4 insertions, 1 deletions
diff --git a/nixos/tests/kernel-generic.nix b/nixos/tests/kernel-generic.nix
index 487dc9a4eab9..4433ae54b402 100644
--- a/nixos/tests/kernel-generic.nix
+++ b/nixos/tests/kernel-generic.nix
@@ -25,6 +25,7 @@ let
   }));
 in
 with pkgs; {
+  linux_4_19 = makeKernelTest "4.19" linuxPackages_4_19;
   linux_5_4 = makeKernelTest "5.4" linuxPackages_5_4;
   linux_5_10 = makeKernelTest "5.10" linuxPackages_5_10;
   linux_5_11 = makeKernelTest "5.11" linuxPackages_5_11;
diff --git a/pkgs/os-specific/linux/kernel/linux-4.19.nix b/pkgs/os-specific/linux/kernel/linux-4.19.nix
index dbd0f9e7f58d..b0e5a865724b 100644
--- a/pkgs/os-specific/linux/kernel/linux-4.19.nix
+++ b/pkgs/os-specific/linux/kernel/linux-4.19.nix
@@ -1,4 +1,4 @@
-{ lib, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args:
+{ lib, buildPackages, fetchurl, perl, buildLinux, nixosTests, modDirVersionArg ? null, ... } @ args:
 
 with lib;
 
@@ -15,4 +15,6 @@ buildLinux (args // rec {
     url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
     sha256 = "0z5pgal8775rf7pvpxq47dnghr42al2k9py0s9jl3js2wamgdyix";
   };
+
+  kernelTests = args.kernelTests or [ nixosTests.kernel-generic.linux_4_19 ];
 } // (args.argsOverride or {}))