Skip to content

Commit

Permalink
Move tests from spirv-builder to their own crate
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky committed Nov 2, 2020
1 parent dde2cc5 commit 8b6afec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"crates/spirv-std",
"crates/spirv-tools",
"crates/spirv-tools-sys",
"crates/testsuite",
]

[patch.crates-io]
Expand Down
2 changes: 1 addition & 1 deletion crates/testsuite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn panic(_: &PanicInfo) -> ! {
}
"#;

pub fn setup(src: &str) -> Result<PathBuf, Box<dyn Error>> {
fn setup(src: &str) -> Result<PathBuf, Box<dyn Error>> {
let project = Path::new("../target/test-spirv").to_owned();
let cargo_toml = project.join("Cargo.toml");
let lib_rs = project.join("src/lib.rs");
Expand Down

0 comments on commit 8b6afec

Please sign in to comment.