Skip to content

Commit

Permalink
test[2]
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantcornholio committed Jan 20, 2025
1 parent 54cab5d commit 9632c64
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions crates/llvm-builder/tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,37 +105,37 @@ fn clone_build_and_clean_musl() -> anyhow::Result<()> {
// Ok(())
// }

/// This test verifies that the LLVM repository can be successfully built with address sanitizer.
#[test]
fn build_with_sanitizers() -> anyhow::Result<()> {
let test_dir = common::TestDir::with_lockfile(None)?;

Command::cargo_bin(common::REVIVE_LLVM)?
.current_dir(test_dir.path())
.arg("clone")
.assert()
.success();

Command::cargo_bin(common::REVIVE_LLVM)?
.current_dir(test_dir.path())
.arg("build")
.arg("--llvm-projects")
.arg("lld")
.arg("--llvm-projects")
.arg("clang")
.assert()
.success();

Command::cargo_bin(common::REVIVE_LLVM)?
.current_dir(test_dir.path())
.arg("build")
.arg("--sanitizer")
.arg("Address")
.assert()
.success();

Ok(())
}
// /// This test verifies that the LLVM repository can be successfully built with address sanitizer.
// #[test]
// fn build_with_sanitizers() -> anyhow::Result<()> {
// let test_dir = common::TestDir::with_lockfile(None)?;
//
// Command::cargo_bin(common::REVIVE_LLVM)?
// .current_dir(test_dir.path())
// .arg("clone")
// .assert()
// .success();
//
// Command::cargo_bin(common::REVIVE_LLVM)?
// .current_dir(test_dir.path())
// .arg("build")
// .arg("--llvm-projects")
// .arg("lld")
// .arg("--llvm-projects")
// .arg("clang")
// .assert()
// .success();
//
// Command::cargo_bin(common::REVIVE_LLVM)?
// .current_dir(test_dir.path())
// .arg("build")
// .arg("--sanitizer")
// .arg("Address")
// .assert()
// .success();
//
// Ok(())
// }
//
// /// Tests the clone, build, and clean process of the LLVM repository for the emscripten target.
// #[test]
Expand Down

0 comments on commit 9632c64

Please sign in to comment.