summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2021-12-09 12:39:30 +0100
committerJanne Heß <janne@hess.ooo>2021-12-09 12:39:30 +0100
commitdac4f986ad9081b4ac5ead5064d65ca11e7f683c (patch)
tree421771ac35f1b47be0443df7fa449ef62b9ac601 /pkgs/os-specific/linux/systemd
parent2024306048f284278c34599e563ebd8a20253559 (diff)
downloadnixpkgs-dac4f986ad9081b4ac5ead5064d65ca11e7f683c.tar
nixpkgs-dac4f986ad9081b4ac5ead5064d65ca11e7f683c.tar.gz
nixpkgs-dac4f986ad9081b4ac5ead5064d65ca11e7f683c.tar.bz2
nixpkgs-dac4f986ad9081b4ac5ead5064d65ca11e7f683c.tar.lz
nixpkgs-dac4f986ad9081b4ac5ead5064d65ca11e7f683c.tar.xz
nixpkgs-dac4f986ad9081b4ac5ead5064d65ca11e7f683c.tar.zst
nixpkgs-dac4f986ad9081b4ac5ead5064d65ca11e7f683c.zip
systemd: Add switchTest to passthru
Diffstat (limited to 'pkgs/os-specific/linux/systemd')
-rw-r--r--pkgs/os-specific/linux/systemd/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix
index aa106ca1aba..13a39f182c0 100644
--- a/pkgs/os-specific/linux/systemd/default.nix
+++ b/pkgs/os-specific/linux/systemd/default.nix
@@ -2,6 +2,7 @@
 
 { stdenv
 , lib
+, nixosTests
 , fetchFromGitHub
 , fetchpatch
 , fetchzip
@@ -613,6 +614,10 @@ stdenv.mkDerivation {
   # runtime; otherwise we can't and we need to reboot.
   passthru.interfaceVersion = 2;
 
+  passthru.tests = {
+    inherit (nixosTests) switchTest;
+  };
+
   meta = with lib; {
     homepage = "https://www.freedesktop.org/wiki/Software/systemd/";
     description = "A system and service manager for Linux";