tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixosTests.scaphandre: handleTest -> runTest
Sizhe Zhao
6 months ago
ea3e5b12
f693e183
+14
-18
2 changed files
expand all
collapse all
unified
split
nixos
tests
all-tests.nix
scaphandre.nix
+1
-1
nixos/tests/all-tests.nix
···
1260
sane = runTest ./sane.nix;
1261
sanoid = runTest ./sanoid.nix;
1262
saunafs = runTest ./saunafs.nix;
1263
-
scaphandre = handleTest ./scaphandre.nix { };
1264
schleuder = runTest ./schleuder.nix;
1265
scion-freestanding-deployment = handleTest ./scion/freestanding-deployment { };
1266
scrutiny = runTest ./scrutiny.nix;
···
1260
sane = runTest ./sane.nix;
1261
sanoid = runTest ./sanoid.nix;
1262
saunafs = runTest ./saunafs.nix;
1263
+
scaphandre = runTest ./scaphandre.nix;
1264
schleuder = runTest ./schleuder.nix;
1265
scion-freestanding-deployment = handleTest ./scion/freestanding-deployment { };
1266
scrutiny = runTest ./scrutiny.nix;
+13
-17
nixos/tests/scaphandre.nix
···
1
-
import ./make-test-python.nix {
2
name = "scaphandre";
3
4
-
nodes = {
5
-
scaphandre =
6
-
{ pkgs, ... }:
7
-
{
8
-
boot.kernelModules = [ "intel_rapl_common" ];
9
10
-
environment.systemPackages = [ pkgs.scaphandre ];
11
-
};
12
-
};
13
14
-
testScript =
15
-
{ nodes, ... }:
16
-
''
17
-
scaphandre.start()
18
-
scaphandre.wait_until_succeeds(
19
-
"scaphandre stdout -t 4",
20
-
)
21
-
'';
22
}
···
1
+
{
2
name = "scaphandre";
3
4
+
nodes.scaphandre =
5
+
{ pkgs, ... }:
6
+
{
7
+
boot.kernelModules = [ "intel_rapl_common" ];
0
8
9
+
environment.systemPackages = [ pkgs.scaphandre ];
10
+
};
0
11
12
+
testScript = ''
13
+
scaphandre.start()
14
+
scaphandre.wait_until_succeeds(
15
+
"scaphandre stdout -t 4",
16
+
)
17
+
'';
0
0
18
}