Implement a domtree sub-test.

This test verifies the computed dominator tree against annotations.

Move the existing testcases into filetests/ with the new syntax.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-16 14:47:47 -07:00
parent ec6a9df08a
commit 770285d5c6
13 changed files with 232 additions and 186 deletions

View File

@@ -12,9 +12,11 @@ pub type Result<T> = result::Result<T, String>;
pub fn new(parsed: &TestCommand) -> Result<Box<SubTest>> {
use cat;
use print_cfg;
use filetest::domtree;
match parsed.command {
"cat" => cat::subtest(parsed),
"print-cfg" => print_cfg::subtest(parsed),
"domtree" => domtree::subtest(parsed),
_ => Err(format!("unknown test command '{}'", parsed.command)),
}
}