Expand description
Launching test commands for Zebra integration and acceptance tests.
Modulesยง
- arguments ๐
- process_
group ๐ - Owned Unix process groups for test commands.
- to_
regex - Convenience traits for converting to [
Regex] and [RegexSet].
Structsยง
- Arguments
- Helper type to keep track of arguments for spawning a process.
- Child
Output - A demand-driven child pipe reader. Idle readers do not consume child output.
- Read
Response ๐ - Test
Child - A test command child process.
- Test
Output - Test command output logs.
- Test
Status - Test command exit status information.
Enumsยง
- Read
Request ๐
Constantsยง
- CHILD_
CLEANUP_ ๐TIMEOUT - Bound exit and output draining independently of an expired observation budget.
- NO_
MATCHES_ REGEX_ ITER - A
CollectRegexSetiterator that never matches anything.
Traitsยง
- Command
Ext - Wrappers for
Commandmethods to integrate withzebra_test. - Context
From - Add context to an error report
- Test
DirExt - Extension trait for methods on
tempdir::TempDirfor using it as a test directory with an arbitrary command.
Functionsยง
- check_
failure_ regexes - Checks command output log
linefromcmdagainst afailure_regexesregex set, and returns an error if any regex matches. The line is skipped if it matchesignore_regexes. - reap_
before_ ๐deadline - Reap only after the owned group has been retired, without an unbounded process wait.
- test_
cmd - Runs a command
- write_
to_ ๐test_ logs - Write
lineto stdout, so it can be seen in the test logs.