lib/runcmd.yamlhelper script (?P<script>\S+) for runcmdInstall a helper script from an embedded file.
Captures:
script: filesrcdir is in the PATHMake sure the source directory of the project being testes is on the shell PATH. This makes it easy for tests to invoke programs from the source tree.
I redirect stdin from (?P<file>\S+)The next step to run a command, or try to, from this library, will have its standard output directed to the named file.
Captures:
file: pathI send exactly "(?P<text>.*)" to stdinThe next step to run a command, or try to, from this library, will feed the given text to its standard input.
Captures:
text: textI can run (?P<argv0>\S+)(?P<args>.*)Run a program, and make sure it succeeds.
Captures:
args: textargv0: wordI run (?P<argv0>\S+)(?P<args>.*)Run a program, and make sure it succeeds.
Captures:
args: textargv0: wordI run, in (?P<dirname>\S+), (?P<argv0>\S+)(?P<args>.*)Change to a different directory and run a program, and make sure it succeeds;
Captures:
argv0: worddirname: pathargs: textI try to run (?P<argv0>\S+)(?P<args>.*)Run a program, but allow it to fail. Other steps can check if it succeeded.
Captures:
args: textargv0: wordI try to run, in (?P<dirname>\S+), (?P<argv0>\S+)(?P<args>.*)Change to a different directory and run a program, but allow it to fail. Other steps can check if it succeeded.
Captures:
args: textdirname: pathargv0: wordexit code is (?P<exit>-?\d+)Make sure the latest command run by lib/runcmd had a
specific exit code.
Captures:
exit: intexit code is not (?P<exit>-?\d+)Make sure the latest command run by lib/runcmd did not
have a specific exit code.
Captures:
exit: intcommand is successfulMake sure the latest command run by lib/runcmd indicated
the command succeeded.
command failsMake sure the latest command run by lib/runcmd indicated
the command failed.
stdout is exactly "(?P<text>.*)"Make sure the standard output of the latest command run by
lib/runcmd is exactly as desired.
Captures:
text: escapedtextstdout isn't exactly "(?P<text>.*)"Make sure the standard output of the latest command run by
lib/runcmd is different from what is not wanted.
Captures:
text: escapedtextstderr is exactly "(?P<text>.*)"Make sure the standard error output of the latest command run by
lib/runcmd is exactly as desired.
Captures:
text: escapedtextstderr isn't exactly "(?P<text>.*)"Make sure the standard error output of the latest command run by
lib/runcmd is different from what is not wanted.
Captures:
text: escapedtextstdout contains "(?P<text>.*)"Make sure the standard output of the latest command run by
lib/runcmd contains the desired sub-string.
Captures:
text: escapedtextstdout doesn't contain "(?P<text>.*)"Make sure the standard output of the latest command run by
lib/runcmd does not contain the sub-string.
Captures:
text: escapedtextstderr contains "(?P<text>.*)"Make sure the standard output of the latest command run by
lib/runcmd contains the desired sub-string.
Captures:
text: escapedtextstderr doesn't contain "(?P<text>.*)"Make sure the standard error output of the latest command run by
lib/runcmd does not contain the sub-string.
Captures:
text: escapedtextstdout matches regex (?P<regex>.*)Make sure the standard output of the latest command run by
lib/runcmd matches the desired regular expression.
Captures:
regex: textstdout doesn't match regex (?P<regex>.*)Make sure the standard output of the latest command run by
lib/runcmd does not match a regular expression.
Captures:
regex: textstderr matches regex (?P<regex>.*)Make sure the standard error output of the latest command run by
lib/runcmd matches the desired regular expression.
Captures:
regex: textstderr doesn't match regex (?P<regex>.*)Make sure the standard error output of the latest command run by
lib/runcmd does not match a regular expression.
Captures:
regex: text(?:the)? environment (?:variable)? (?P<variable>[A-Za-z_]+)=(?P<value>.*)Make the environment variable variable have the value
value when running subcommands
Captures:
value: textvariable: word(?:the)? unset environment (?:variable)? (?P<variable>[A-Za-z_]+)Ensure that the environment variable variable is not set
in when running subcommands
Captures:
variable: word