about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/gc-runtime.nix.in28
1 files changed, 22 insertions, 6 deletions
diff --git a/tests/gc-runtime.nix.in b/tests/gc-runtime.nix.in
index aefffa276623..4ffe0435aa4d 100644
--- a/tests/gc-runtime.nix.in
+++ b/tests/gc-runtime.nix.in
@@ -1,7 +1,23 @@
-derivation {
-  name = "gc-runtime";
-  system = "@system@";
-  builder = "@shell@";
-  args = ["-e" "-x" ./gc-runtime.builder.sh];
-  PATH = "@testPath@";
+let {
+
+  # Test inline source file definitions.
+  builder = builtins.toFile "
+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@";
+  };
+
 }