MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / main

Function main

tests/src/main.rs:59–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59fn 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
83struct Runner {
84 opt: Opt,

Callers

nothing calls this directly

Calls 2

run_modeMethod · 0.80
find_rustc_codegen_spirvFunction · 0.70

Tested by

no test coverage detected