summaryrefslogtreecommitdiff
path: root/test/end-to-end/generated-binary/compiled.sh
blob: 9372a54cbeafad378cd48e2a108e8a5d2286a43c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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