nixpkgs-immich/nixos/tests/ccache.nix
2024-09-17 10:23:40 -06:00

25 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()
'';
})