share/common/lib/runcmd.yaml
helper script (?P<script>\S+) for runcmd
Install a helper script from an embedded file.
Captures:
script
: filesrcdir is in the PATH
Make 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 run (?P<argv0>\S+)(?P<args>.*)
Run a program, and make sure it succeeds.
Captures:
argv0
: wordargs
: textI 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:
argv0
: wordargs
: textI 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:
argv0
: worddirname
: pathargs
: textexit 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 successful
Make sure the latest command run by lib/runcmd
indicated
the command succeeded.
command fails
Make 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
: textstdout 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
: textstderr is exactly "(?P<text>.*)"
Make sure the standard error output of the latest command run by
lib/runcmd
is exactly as desired.
Captures:
text
: textstderr 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
: textstdout contains "(?P<text>.*)"
Make sure the standard output of the latest command run by
lib/runcmd
contains the desired sub-string.
Captures:
text
: textstdout 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
: textstderr contains "(?P<text>.*)"
Make sure the standard output of the latest command run by
lib/runcmd
contains the desired sub-string.
Captures:
text
: textstderr 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
: textstdout 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