From a001d45ac2653eefe269ea3fbf9650ed2e2a25e3 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 3 Jan 2021 15:50:37 +0100 Subject: [PATCH] pam.passthru.tests: add relevant nixos tests --- pkgs/os-specific/linux/pam/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/pam/default.nix b/pkgs/os-specific/linux/pam/default.nix index e6fbc9aa0975..3faf74af6408 100644 --- a/pkgs/os-specific/linux/pam/default.nix +++ b/pkgs/os-specific/linux/pam/default.nix @@ -1,4 +1,6 @@ -{ stdenv, buildPackages, fetchurl, fetchpatch, flex, cracklib, db4 }: +{ stdenv, buildPackages, fetchurl, fetchpatch, flex, cracklib, db4 +, nixosTests +}: stdenv.mkDerivation rec { pname = "linux-pam"; @@ -63,6 +65,10 @@ stdenv.mkDerivation rec { doCheck = false; # fails + passthru.tests = { + inherit (nixosTests) pam-oath-login pam-u2f shadow; + }; + meta = with stdenv.lib; { homepage = "http://www.linux-pam.org/"; description = "Pluggable Authentication Modules, a flexible mechanism for authenticating user";