aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-19 17:51:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:33 +0200
commit08b6f40b285780906c70c0d56483b8edbb077667 (patch)
treece78deb752756a934cdbd8b7b3df875b48addcd2 /unit-tests/test/script/parser/testscript
parente84fd4aeeb15cd5894193dc403afc60e0dd7f321 (diff)
Add testscript parser unit test
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