Move mir-opt tests to toplevel
This commit is contained in:
parent
86be22ebcd
commit
f07607f47a
195 changed files with 68 additions and 275 deletions
|
@ -611,6 +611,7 @@ dependencies = [
|
||||||
"diff",
|
"diff",
|
||||||
"env_logger 0.7.1",
|
"env_logger 0.7.1",
|
||||||
"getopts",
|
"getopts",
|
||||||
|
"glob",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"libc",
|
"libc",
|
||||||
"log",
|
"log",
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
Dir.glob('src/test/mir-opt/**/*.rs').each do |f|
|
|
||||||
puts f
|
|
||||||
t = File.read(f)
|
|
||||||
b = File.basename(f, ".rs")
|
|
||||||
t.gsub!(/\/\/ EMIT_MIR rustc/, "// EMIT_MIR " + b)
|
|
||||||
File.open(f, "w") { |f| f.puts t }
|
|
||||||
end
|
|
2
omg.mir
2
omg.mir
|
@ -1,2 +0,0 @@
|
||||||
// EMIT_MIR rustc.OMG
|
|
||||||
test 123
|
|
|
@ -197,8 +197,15 @@ fn dump_path(
|
||||||
};
|
};
|
||||||
|
|
||||||
let file_name = format!(
|
let file_name = format!(
|
||||||
"{}.{}{}{}{}.{}.{}.{}", crate_name,
|
"{}.{}{}{}{}.{}.{}.{}",
|
||||||
item_name, shim_disambiguator, promotion_id, pass_num, pass_name, disambiguator, extension,
|
crate_name,
|
||||||
|
item_name,
|
||||||
|
shim_disambiguator,
|
||||||
|
promotion_id,
|
||||||
|
pass_num,
|
||||||
|
pass_name,
|
||||||
|
disambiguator,
|
||||||
|
extension,
|
||||||
);
|
);
|
||||||
|
|
||||||
file_path.push(&file_name);
|
file_path.push(&file_name);
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue