about summary refs log tree commit diff
path: root/nixos/tests/scaphandre.nix
blob: f0a411748503b5d40a804b6b7bf104d052a8e932 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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",
    )
  '';
}