summary refs log tree commit diff
path: root/pkgs/tools/misc/grub
diff options
context:
space:
mode:
authorRyan Burns <rtburns@protonmail.com>2021-02-12 00:57:57 -0800
committerRyan Burns <rtburns@protonmail.com>2021-02-17 12:52:20 -0800
commit41c625ba8febecbc9bf9c4bb1a781759d758e14a (patch)
treebd3259e7b5c5a039033aaccd68574b2ee1cc4360 /pkgs/tools/misc/grub
parent7c01f4b8fb82924225541a50996eba26ad67ecfe (diff)
downloadnixpkgs-41c625ba8febecbc9bf9c4bb1a781759d758e14a.tar
nixpkgs-41c625ba8febecbc9bf9c4bb1a781759d758e14a.tar.gz
nixpkgs-41c625ba8febecbc9bf9c4bb1a781759d758e14a.tar.bz2
nixpkgs-41c625ba8febecbc9bf9c4bb1a781759d758e14a.tar.lz
nixpkgs-41c625ba8febecbc9bf9c4bb1a781759d758e14a.tar.xz
nixpkgs-41c625ba8febecbc9bf9c4bb1a781759d758e14a.tar.zst
nixpkgs-41c625ba8febecbc9bf9c4bb1a781759d758e14a.zip
grub2: add passthru.tests
Diffstat (limited to 'pkgs/tools/misc/grub')
-rw-r--r--pkgs/tools/misc/grub/2.0x.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/misc/grub/2.0x.nix b/pkgs/tools/misc/grub/2.0x.nix
index 318fbba876c..19d2e862ec4 100644
--- a/pkgs/tools/misc/grub/2.0x.nix
+++ b/pkgs/tools/misc/grub/2.0x.nix
@@ -1,6 +1,7 @@
 { lib, stdenv, fetchgit, flex, bison, python3, autoconf, automake, gnulib, libtool
 , gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2, unifont, pkg-config
 , pkgsBuildBuild
+, nixosTests
 , fuse # only needed for grub-mount
 , runtimeShell
 , zfs ? null
@@ -125,6 +126,14 @@ stdenv.mkDerivation rec {
     sed -i $out/lib/grub/*/modinfo.sh -e "/grub_target_cppflags=/ s|'.*'|' '|"
   '';
 
+  passthru.tests = {
+    nixos-grub = nixosTests.grub;
+    nixos-install-simple = nixosTests.installer.simple;
+    nixos-install-grub1 = nixosTests.installer.grub1;
+    nixos-install-grub-uefi = nixosTests.installer.simpleUefiGrub;
+    nixos-install-grub-uefi-spec = nixosTests.installer.simpleUefiGrubSpecialisation;
+  };
+
   meta = with lib; {
     description = "GNU GRUB, the Grand Unified Boot Loader (2.x beta)";