mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
26 lines
544 B
Nix
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()
|
|
'';
|
|
}
|
|
)
|