1 import ./make-test-python.nix ({ pkgs, lib, ... }:
9 imports = [ ./common/user-account.nix ];
11 programs.benchexec = {
19 runexec = lib.getExe' pkgs.benchexec "runexec";
20 echo = builtins.toString pkgs.benchexec;
21 test = lib.getExe (pkgs.writeShellApplication rec {
23 meta.mainProgram = name;
24 text = "echo '${echo}'";
27 stdout = "${wd}/runexec.out";
28 stderr = "${wd}/runexec.err";
32 machine.wait_for_unit("multi-user.target")
33 benchexec.succeed(''''\
35 --property='StandardOutput=file:${stdout}' \
36 --property='StandardError=file:${stderr}' \
37 --unit=runexec --wait --user --machine='${user}@' \
38 --working-directory ${wd} \
45 benchexec.succeed("grep -s '${echo}' ${wd}/output.log")
46 benchexec.succeed("test \"$(grep -Ec '((start|wall|cpu)time|memory)=' ${stdout})\" = 4")
47 benchexec.succeed("! grep -E '(WARNING|ERROR)' ${stderr}")
50 interactive.nodes.benchexec.services.kmscon = {
52 fonts = [{ name = "Fira Code"; package = pkgs.fira-code; }];