aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/testscript
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/test/script/parser/testscript')
-rw-r--r--unit-tests/test/script/parser/testscript40
1 files changed, 40 insertions, 0 deletions
diff --git a/unit-tests/test/script/parser/testscript b/unit-tests/test/script/parser/testscript
new file mode 100644
index 0000000..2a9c2b9
--- /dev/null
+++ b/unit-tests/test/script/parser/testscript
@@ -0,0 +1,40 @@
+foo != 0
+a=aaa
+foo bar <"bbb $a ccc" >ddd 2>>EOE == 2
+eee
+EOE
+foo
+bar
+cmd $build.version.string
+foo = baz
+$foo
+fox = $foo-$build.version.string
+$fox
+$test
+$~
+$*
+$0
+test = xxx
+$0
+$*
+test.options += --foo
+$1
+$*
+test.arguments += bar
+$2
+$*
+($3 == [null])
+
+x = [uint64] 001
+foo $x
+cmd abc$(x)23
+cmd >>EOO << EOI
+foo
+$x
+bar
+EOO
+$x$x$x
+EOI
+
+y = >>
+cmd "2"$y