()
| 57 | } |
| 58 | |
| 59 | fn main() { |
| 60 | let opt = Opt::from_args(); |
| 61 | |
| 62 | let tests_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")); |
| 63 | let workspace_root = tests_dir.parent().unwrap(); |
| 64 | let original_target_dir = workspace_root.join("target"); |
| 65 | let deps_target_dir = original_target_dir.join("compiletest-deps"); |
| 66 | let compiletest_build_dir = original_target_dir.join("compiletest-results"); |
| 67 | |
| 68 | // Pull in rustc_codegen_spirv as a dynamic library in the same way |
| 69 | // spirv-builder does. |
| 70 | let codegen_backend_path = find_rustc_codegen_spirv(); |
| 71 | |
| 72 | let runner = Runner { |
| 73 | opt, |
| 74 | tests_dir, |
| 75 | compiletest_build_dir, |
| 76 | deps_target_dir, |
| 77 | codegen_backend_path, |
| 78 | }; |
| 79 | |
| 80 | runner.run_mode("ui"); |
| 81 | } |
| 82 | |
| 83 | struct Runner { |
| 84 | opt: Opt, |
nothing calls this directly
no test coverage detected