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:
@@ -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)),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user