[functional-tests] port thin_delta tests to rust.

cargo test
This commit is contained in:
Joe Thornber
2020-08-05 08:24:52 +01:00
parent 197e4ffbfd
commit 23568aaa11
3 changed files with 81 additions and 44 deletions

View File

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