nixpkgs/nixos/tests/ccache.nix
Wolfgang Walther f09f724ef8
maintainers: drop ehmry
This user is blocked since May 2025, thus can't maintain any packages
anymore.
2025-08-31 16:53:44 +02:00

26 lines
544 B
Nix

import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "ccache";
nodes.machine =
{ ... }:
{
imports = [ ../modules/profiles/minimal.nix ];
environment.systemPackages = [ pkgs.hello ];
programs.ccache = {
enable = true;
packageNames = [ "hello" ];
};
};
testScript = ''
start_all()
machine.wait_for_unit("multi-user.target")
machine.succeed("nix-ccache --show-stats")
machine.succeed("hello")
machine.shutdown()
'';
}
)