mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 21:58:01 +00:00
7f81f37e0c
Pre-eliminary support for LLVM releases and resolc binary releases by streamlining the build process for all supported hosts platforms. - Introduce the revive-llvm-builder crate with the revive-llvm builder utilty. - Do not rely on the LLVM dependency in $PATH to decouple the system LLVM installation from the LLVM host dependency. - Fix the emscripten build by decoupling the host and native LLVM dependencies. Thus allowing a single LLVM emscripten release that can be used on any host platform. - An example Dockerfile building an alpine container with a fully statically linked resolc ELF binary. - Remove the Debian builder utilities and workflow.
37 lines
876 B
Rust
37 lines
876 B
Rust
pub mod common;
|
|
|
|
use std::process::Command;
|
|
|
|
use assert_cmd::prelude::*;
|
|
|
|
/// This test verifies that the LLVM repository can be successfully cloned using a specific branch
|
|
/// and reference.
|
|
#[test]
|
|
fn clone() -> 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();
|
|
|
|
Ok(())
|
|
}
|
|
|
|
/// This test verifies that the LLVM repository can be successfully cloned using a specific branch
|
|
/// and reference with --deep option.
|
|
#[test]
|
|
fn clone_deep() -> anyhow::Result<()> {
|
|
let test_dir = common::TestDir::with_lockfile(None)?;
|
|
|
|
Command::cargo_bin(common::REVIVE_LLVM)?
|
|
.current_dir(test_dir.path())
|
|
.arg("clone")
|
|
.arg("--deep")
|
|
.assert()
|
|
.success();
|
|
|
|
Ok(())
|
|
}
|