[functional-tests] port thin_metadata_pack tests to Rust.

cargo test
This commit is contained in:
Joe Thornber
2020-08-05 09:09:18 +01:00
parent 23568aaa11
commit d2678fdf27
3 changed files with 98 additions and 43 deletions

View File

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