diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2022-02-11 17:49:52 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2022-02-13 07:29:40 +0900 |
commit | a05f1c9f9357d3c3c39b99a5aa020399ee28bb99 (patch) | |
tree | b88e064c48dd4f50a0cf7c3a7b1fc65a857e815e /pkgs/tools/system | |
parent | c132bfaa19ea08cce7c261ab4f0bda42bfc76b48 (diff) | |
download | nixpkgs-a05f1c9f9357d3c3c39b99a5aa020399ee28bb99.tar nixpkgs-a05f1c9f9357d3c3c39b99a5aa020399ee28bb99.tar.gz nixpkgs-a05f1c9f9357d3c3c39b99a5aa020399ee28bb99.tar.bz2 nixpkgs-a05f1c9f9357d3c3c39b99a5aa020399ee28bb99.tar.lz nixpkgs-a05f1c9f9357d3c3c39b99a5aa020399ee28bb99.tar.xz nixpkgs-a05f1c9f9357d3c3c39b99a5aa020399ee28bb99.tar.zst nixpkgs-a05f1c9f9357d3c3c39b99a5aa020399ee28bb99.zip |
nixos tests: add logrotate test
make sure the service is enabled by default and works.
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r-- | pkgs/tools/system/logrotate/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/system/logrotate/default.nix b/pkgs/tools/system/logrotate/default.nix index 97d920ce918..f0ce0838335 100644 --- a/pkgs/tools/system/logrotate/default.nix +++ b/pkgs/tools/system/logrotate/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, fetchFromGitHub, gzip, popt, autoreconfHook , mailutils ? null , aclSupport ? true, acl +, nixosTests }: stdenv.mkDerivation rec { @@ -25,6 +26,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook ]; buildInputs = [ popt ] ++ lib.optionals aclSupport [ acl ]; + passthru.tests = { + nixos-logrotate = nixosTests.logrotate; + }; + meta = with lib; { homepage = "https://github.com/logrotate/logrotate"; description = "Rotates and compresses system logs"; |