From e1c923e1c5cc07d21669cc2452b780a321df1bec Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 14 May 2020 14:18:50 +0300 Subject: Add build script --- .../build/script/parser+variable.test.testscript | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 libbuild2/build/script/parser+variable.test.testscript (limited to 'libbuild2/build/script/parser+variable.test.testscript') diff --git a/libbuild2/build/script/parser+variable.test.testscript b/libbuild2/build/script/parser+variable.test.testscript new file mode 100644 index 0000000..2d9bb1e --- /dev/null +++ b/libbuild2/build/script/parser+variable.test.testscript @@ -0,0 +1,41 @@ +# file : libbuild2/build/script/parser+variable.test.testscript +# license : MIT; see accompanying LICENSE file + +: assignment +: +$* <>EOO +a = b +echo $a +EOI +echo b +EOO + +: primary-target +: +$* <>EOO +echo $> +EOI +echo driver +EOO + +: no-newline +: +$* <:'echo a' 2>>EOE != 0 +buildfile:11:7: error: expected newline instead of +EOE + +: set-primary-target +: +$* <>EOE != 0 +> = a +EOI +buildfile:11:1: error: missing program +EOE + +: empty-name +: +$* <>EOE != 0 += b +EOI +buildfile:11:1: error: missing variable name +EOE -- cgit v1.1