aboutsummaryrefslogtreecommitdiff
path: root/tests/hooks/testscript
blob: d0811f76c9fe8b84e713243271ad345f81a4b063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# file      : tests/hooks/testscript
# copyright : Copyright (c) 2014-2019 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

.include ../common.testscript

+cat <'print bootstrap'  >+build/bootstrap.build
+cat <'print root'       >=build/root.build

+mkdir build/bootstrap
+cat <'print pre-bootstrap'  >=build/bootstrap/pre-bootstrap.build
+cat <'print post-bootstrap' >=build/bootstrap/post-bootstrap.build

+mkdir build/root
+cat <'print pre-root'  >=build/root/pre-root.build
+cat <'print post-root' >=build/root/post-root.build

: basics
:
$* <<EOI >>EOO
print buildfile
EOI
pre-bootstrap
bootstrap
post-bootstrap
pre-root
root
post-root
buildfile
EOO