aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/testscript.cli32
1 files changed, 23 insertions, 9 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli
index 0a4bd8f..9a137eb 100644
--- a/doc/testscript.cli
+++ b/doc/testscript.cli
@@ -704,20 +704,34 @@ here-document fragments.
\
script:
- *script-line
+ scope-body
-script-line:
- variable-line|test-line
+scope-body:
+ *setup
+ *(scope|test)
+ *teardown
+
+setup:
+ variable-line|setup-line
+
+teardown:
+ variable-line|teardown-line
+
+scope:
+ '{'
+ scope-body
+ '}'
+
+test:
+ *((variable-line|test-line) ';')
+ test-line
variable-line: <variable> ('='|'+='|'=+') value-attributes? <value>
value-attributes: '[' <key-value-pairs> ']'
-test-line:
- *((variable-line|command-line) ';')
- command-line
-
-command-line:
- command
+setup-line: '+' command
+teardown-line: '-' command
+test-line: command
command: <path>(' '+(<arg>|redirect))* command-exit?
*here-document