mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 02:07:55 +00:00
42cac55be8
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
37 lines
897 B
Rust
37 lines
897 B
Rust
pub mod common;
|
|
|
|
use std::process::Command;
|
|
|
|
use assert_cmd::{cargo, 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::new(cargo::cargo_bin!("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::new(cargo::cargo_bin!("revive-llvm"))
|
|
.current_dir(test_dir.path())
|
|
.arg("clone")
|
|
.arg("--deep")
|
|
.assert()
|
|
.success();
|
|
|
|
Ok(())
|
|
}
|