c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
24 lines
566 B
Nix
24 lines
566 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "ccache";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ ehmry ];
|
|
};
|
|
|
|
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()
|
|
'';
|
|
})
|