nixos/ccache: add test
This commit is contained in:
parent
7713853c86
commit
e7d3db0954
24
nixos/tests/ccache.nix
Normal file
24
nixos/tests/ccache.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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()
|
||||||
|
'';
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user