1 import ./make-test-python.nix (
10 imports = [ ./common/user-account.nix ];
12 programs.benchexec = {
21 runexec = lib.getExe' pkgs.benchexec "runexec";
22 echo = builtins.toString pkgs.benchexec;
24 pkgs.writeShellApplication rec {
26 meta.mainProgram = name;
27 text = "echo '${echo}'";
31 stdout = "${wd}/runexec.out";
32 stderr = "${wd}/runexec.err";
36 machine.wait_for_unit("multi-user.target")
37 benchexec.succeed(''''\
39 --property='StandardOutput=file:${stdout}' \
40 --property='StandardError=file:${stderr}' \
41 --unit=runexec --wait --user --machine='${user}@' \
42 --working-directory ${wd} \
49 benchexec.succeed("grep -s '${echo}' ${wd}/output.log")
50 benchexec.succeed("test \"$(grep -Ec '((start|wall|cpu)time|memory)=' ${stdout})\" = 4")
51 benchexec.succeed("! grep -E '(WARNING|ERROR)' ${stderr}")
54 interactive.nodes.benchexec.services.kmscon = {
59 package = pkgs.fira-code;