1import ./make-test-python.nix (
2 { pkgs, ... }:
3 {
4 name = "ccache";
5
6 nodes.machine =
7 { ... }:
8 {
9 imports = [ ../modules/profiles/minimal.nix ];
10 environment.systemPackages = [ pkgs.hello ];
11 programs.ccache = {
12 enable = true;
13 packageNames = [ "hello" ];
14 };
15 };
16
17 testScript = ''
18 start_all()
19 machine.wait_for_unit("multi-user.target")
20 machine.succeed("nix-ccache --show-stats")
21 machine.succeed("hello")
22 machine.shutdown()
23 '';
24 }
25)