aboutsummaryrefslogtreecommitdiff
path: root/doc/testscript.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-22 11:59:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:34 +0200
commit31e16a7413813293e3cccb6799eaa08b7af5af4e (patch)
tree45f06abbcf44652b58c3a2ad7485f64108994abd /doc/testscript.cli
parent8e3a8ffa6579a51f5a9351e1b99c07d3e1fbd234 (diff)
Implement support for compound tests
Diffstat (limited to 'doc/testscript.cli')
-rw-r--r--doc/testscript.cli12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli
index 027fb64..b12ca98 100644
--- a/doc/testscript.cli
+++ b/doc/testscript.cli
@@ -713,12 +713,14 @@ variable-line: <variable> ('='|'+='|'=+') value-attributes? <value>
value-attributes: '[' <key-value-pairs> ']'
test-line:
- command command-exit?
- *here-document
+ *((variable-line|command-line) ';')
+ command-line
-command-exit: ('=='|'!=') <exit-status>
+command-line:
+ command
-command: <path>(' '+(<arg>|stdin|stdout|stderr))*
+command: <path>(' '+(<arg>|stdin|stdout|stderr))* command-exit?
+ *here-document
stdin: '0'?('<!'|\
'<' <text>|\
@@ -732,6 +734,8 @@ stderr: '2'('>!'|\
'>' <text>|\
'>>' <here-end>)
+command-exit: ('=='|'!=') <exit-status>
+
here-document:
*<text>
<here-end>