[tests] Pull out common submodules

New modules: fixture, process, program, target, and thin
This commit is contained in:
Ming-Hung Tsai
2021-07-20 17:37:55 +08:00
parent 66b49e6f3d
commit 16190f0f9a
19 changed files with 469 additions and 388 deletions

View File

@@ -1,5 +1,11 @@
use anyhow::Result;
use thinp::file_utils;
use crate::common::fixture::*;
use crate::common::process::*;
use crate::common::program::*;
use crate::common::test_dir::*;
use crate::common::thin_xml_generator::{write_xml, FragmentedS};
use crate::common::*;
//------------------------------------------
// wrappers
@@ -148,7 +154,7 @@ where
let mut td = TestDir::new()?;
// input an unreadable file
let input = mk_valid_md(&mut td)?;
let input = P::mk_valid_input(&mut td)?;
duct::cmd!("chmod", "-r", &input).run()?;
let wrapper = build_args_fn(P::arg_type())?;