mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
19 lines
367 B
Nix
19 lines
367 B
Nix
|
import ./make-test-python.nix {
|
||
|
name = "scaphandre";
|
||
|
|
||
|
nodes = {
|
||
|
scaphandre = { pkgs, ... } : {
|
||
|
boot.kernelModules = [ "intel_rapl_common" ];
|
||
|
|
||
|
environment.systemPackages = [ pkgs.scaphandre ];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = { nodes, ... } : ''
|
||
|
scaphandre.start()
|
||
|
scaphandre.wait_until_succeeds(
|
||
|
"scaphandre stdout -t 4",
|
||
|
)
|
||
|
'';
|
||
|
}
|