[functional-tests (rust)] port thin_repair tests to rust.

cargo test
This commit is contained in:
Joe Thornber
2020-08-04 11:30:46 +01:00
parent f56ea2d031
commit 4ac428128a
4 changed files with 170 additions and 95 deletions

View File

@@ -59,6 +59,17 @@ macro_rules! thin_rmap {
};
}
#[macro_export]
macro_rules! thin_repair {
( $( $arg: expr ),* ) => {
{
use std::ffi::OsString;
let args: &[OsString] = &[$( Into::<OsString>::into($arg) ),*];
duct::cmd("bin/thin_repair", args).stdout_capture().stderr_capture()
}
};
}
//------------------------------------------
pub struct TestDir {