nixpkgs/nixos/tests/ccache.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
622 B
Nix
Raw Normal View History

2024-02-08 10:39:12 +00:00
import ./make-test-python.nix (
{ pkgs, ... }:
{
name = "ccache";
meta = with pkgs.lib.maintainers; {
maintainers = [ ehmry ];
};
nodes.machine =
{ ... }:
{
2024-02-08 10:39:12 +00:00
imports = [ ../modules/profiles/minimal.nix ];
environment.systemPackages = [ pkgs.hello ];
programs.ccache = {
enable = true;
packageNames = [ "hello" ];
};
};
2024-02-08 10:39:12 +00:00
testScript = ''
start_all()
machine.wait_for_unit("multi-user.target")
machine.succeed("nix-ccache --show-stats")
machine.succeed("hello")
machine.shutdown()
'';
}
)