diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hooks/buildfile | 5 | ||||
-rw-r--r-- | tests/hooks/testscript | 30 |
2 files changed, 35 insertions, 0 deletions
diff --git a/tests/hooks/buildfile b/tests/hooks/buildfile new file mode 100644 index 0000000..c951d56 --- /dev/null +++ b/tests/hooks/buildfile @@ -0,0 +1,5 @@ +# file : tests/hooks/buildfile +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +./: test{testscript} $b diff --git a/tests/hooks/testscript b/tests/hooks/testscript new file mode 100644 index 0000000..7ad8028 --- /dev/null +++ b/tests/hooks/testscript @@ -0,0 +1,30 @@ +# file : tests/hooks/testscript +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +.include ../common.test + ++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 |