diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-05-18 12:06:16 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-05-18 12:06:16 +0300 |
commit | dfb1415d5eaf006ee45235f275d17f52d3db38e5 (patch) | |
tree | bc617819ce3ecee2687252b82c9fb664d76b630b /libbuild2/build/script/parser+line.test.testscript | |
parent | 96908ec43ed27d9f34da27b6a94a6db357465056 (diff) |
Add dump(ostream,script::lines) (partial implementation)build-script
Diffstat (limited to 'libbuild2/build/script/parser+line.test.testscript')
-rw-r--r-- | libbuild2/build/script/parser+line.test.testscript | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libbuild2/build/script/parser+line.test.testscript b/libbuild2/build/script/parser+line.test.testscript new file mode 100644 index 0000000..df4e77b --- /dev/null +++ b/libbuild2/build/script/parser+line.test.testscript @@ -0,0 +1,39 @@ +# file : libbuild2/build/script/parser+line.test.testscript +# license : MIT; see accompanying LICENSE file + +test.options += -d + +#\ +: if-else +: +$* <<EOI >| + if foo + bar + elif fox + baz + end + if! foo + bar + elif! fox + baz + end + EOI + +: command +: +$* <<EOI >| + foo >| 2>- &a &?b + foo >=c 2>~/error:.*/ &!c + foo >>:/~%EOF% + %.* + abc + %xyz.*% + EOF + EOI + +: quoting +: +$* <<EOI >| + foo 'bar' "baz" '' "" + EOI +#\ |