macro_rules! clitest {
($name:ident, $script:expr) => { ... };
}Expand description
Generate #[test] functions from inline clitest scripts. The PWD for the
script is set to the current directory, which for cargo test is the root
of the crate.
use clitest_lib::clitest;
clitest!(my_test, r#"
$ echo hello
! hello
"#);