summaryrefslogtreecommitdiff
path: root/test/end-to-end/generated-binary/compiled.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/end-to-end/generated-binary/compiled.sh')
-rwxr-xr-xtest/end-to-end/generated-binary/compiled.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/end-to-end/generated-binary/compiled.sh b/test/end-to-end/generated-binary/compiled.sh
new file mode 100755
index 00000000..572e8187
--- /dev/null
+++ b/test/end-to-end/generated-binary/compiled.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+set -e
+
+mkdir .tool-root
+touch ROOT
+cat > TARGETS <<'EOI'
+{ "program outputs": {"type": "generated files", "width": ["16"]}
+, "ALL":
+ { "type": "generic"
+ , "outs": ["out.txt"]
+ , "cmds": ["cat $(ls out-*.txt | sort) > out.txt"]
+ , "deps": ["program outputs"]
+ }
+}
+EOI
+
+echo
+echo "Analysing"
+bin/tool-under-test analyse --dump_graph graph.json 2>&1
+
+echo
+echo "Building"
+bin/tool-under-test install -o out --local_build_root .tool-root -J 16 2>&1