Implement the 'test print-cfg' sub-test.

Move the CFG tests into the filetests directory.

Remove the tests directory, there are no more shell-driven tests left.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-15 17:20:39 -07:00
parent 1342a0fb71
commit 5ac30b0075
8 changed files with 35 additions and 56 deletions

View File

@@ -11,8 +11,10 @@ pub type Result<T> = result::Result<T, String>;
/// Create a new subcommand trait object to match `parsed.command`.
pub fn new(parsed: &TestCommand) -> Result<Box<SubTest>> {
use cat;
use print_cfg;
match parsed.command {
"cat" => cat::subtest(parsed),
"print-cfg" => print_cfg::subtest(parsed),
_ => Err(format!("unknown test command '{}'", parsed.command)),
}
}