aboutsummaryrefslogtreecommitdiff
path: root/tests/gc-runtime.nix.in
blob: 5767d0370f75f1ba404b30a1e14631d8b39f842d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
let {

  # Test inline source file definitions.
  builder = builtins.toFile "builder.sh" "
mkdir $out

cat > $out/program <<EOF
#! $SHELL
sleep 10000
EOF

chmod +x $out/program
";

  body = derivation {
    name = "gc-runtime";
    system = "@system@";
    builder = "@shell@";
    args = ["-e" "-x" builder];
    PATH = "@testPath@";
  };

}