move tests with MIR-opt to their own function we we can run them separately

This commit is contained in:
Ralf Jung 2017-08-25 19:21:10 +02:00
parent b1ca65447a
commit ac80212f7e

View File

@ -174,17 +174,24 @@ fn get_host() -> String {
String::from(host)
}
#[test]
fn run_pass_miri() {
fn run_pass_miri(opt: bool) {
let sysroot = get_sysroot();
let host = get_host();
for &opt in [false, true].iter() {
for_all_targets(&sysroot, |target| {
miri_pass("tests/run-pass", &target, &host, false, opt);
});
miri_pass("tests/run-pass-fullmir", &host, &host, true, opt);
}
for_all_targets(&sysroot, |target| {
miri_pass("tests/run-pass", &target, &host, false, opt);
});
miri_pass("tests/run-pass-fullmir", &host, &host, true, opt);
}
#[test]
fn run_pass_miri_noopt() {
run_pass_miri(false);
}
#[test]
fn run_pass_miri_opt() {
run_pass_miri(true);
}
#[test]