about summary refs log tree commit diff
path: root/third_party/nix/tests/dependencies.builder0.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/tests/dependencies.builder0.sh')
-rw-r--r--third_party/nix/tests/dependencies.builder0.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/nix/tests/dependencies.builder0.sh b/third_party/nix/tests/dependencies.builder0.sh
new file mode 100644
index 000000000000..c37bf909a5f9
--- /dev/null
+++ b/third_party/nix/tests/dependencies.builder0.sh
@@ -0,0 +1,16 @@
+[ "${input1: -2}" = /. ]
+[ "${input2: -2}" = /. ]
+
+mkdir $out
+echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar
+
+ln -s $input2 $out/input-2
+
+# Self-reference.
+ln -s $out $out/self
+
+# Executable.
+echo program > $out/program
+chmod +x $out/program
+
+echo FOO