From 31e16a7413813293e3cccb6799eaa08b7af5af4e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 22 Oct 2016 11:59:20 +0200 Subject: Implement support for compound tests --- doc/testscript.cli | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'doc') 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: ('='|'+='|'=+') value-attributes? value-attributes: '[' ']' test-line: - command command-exit? - *here-document + *((variable-line|command-line) ';') + command-line -command-exit: ('=='|'!=') +command-line: + command -command: (' '+(|stdin|stdout|stderr))* +command: (' '+(|stdin|stdout|stderr))* command-exit? + *here-document stdin: '0'?('|\ @@ -732,6 +734,8 @@ stderr: '2'('>!'|\ '>' |\ '>>' ) +command-exit: ('=='|'!=') + here-document: * -- cgit v1.1