Macro tryrun::output[][src]

macro_rules! output {
    ($base_path:expr) => { ... };
}
Expand description

Creates an Output that expects stdout to match $base_path.stdout and stderr to match $base_path.stderr.

Example

const STDOUT_STDERR: OutputStr = tryrun::output!(concat!(env!("OUT_DIR"), "/foo"));
assert_eq!(STDOUT_STDERR.stdout.unwrap(), concat!(env!("OUT_DIR"), "/foo.stdout"));
assert_eq!(STDOUT_STDERR.stderr.unwrap(), concat!(env!("OUT_DIR"), "/foo.stderr"));