tests: include git compatibility in the shared executable
This commit is contained in:
@@ -6,31 +6,15 @@ use sausage::{
|
||||
|
||||
#[tokio::test(flavor = "current_thread")]
|
||||
async fn default_identity_and_which() -> anyhow::Result<()> {
|
||||
let repo = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("..");
|
||||
let userland = repo.join("userland");
|
||||
assert!(
|
||||
std::process::Command::new("nu")
|
||||
.args(["--no-config-file", "cwd-init/build.nu"])
|
||||
.current_dir(&userland)
|
||||
.status()?
|
||||
.success()
|
||||
);
|
||||
let userland = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../userland");
|
||||
let target = crate::common::build_git();
|
||||
assert!(
|
||||
std::process::Command::new("cargo")
|
||||
.args([
|
||||
"build",
|
||||
"--release",
|
||||
"-p",
|
||||
"git",
|
||||
"-p",
|
||||
"sausage-exec-tools",
|
||||
"--locked"
|
||||
])
|
||||
.args(["build", "--release", "-p", "sausage-exec-tools", "--locked"])
|
||||
.current_dir(&userland)
|
||||
.status()?
|
||||
.success()
|
||||
);
|
||||
let target = std::path::PathBuf::from(std::env::var("CARGO_TARGET_DIR")?);
|
||||
let bundle = tempfile::tempdir()?;
|
||||
std::fs::create_dir_all(bundle.path().join("bin"))?;
|
||||
std::fs::create_dir_all(bundle.path().join("src"))?;
|
||||
@@ -34,6 +34,7 @@ mod durable;
|
||||
mod events;
|
||||
mod extension_names;
|
||||
mod extensions;
|
||||
mod git_compat;
|
||||
mod git_runtime;
|
||||
mod goal_questions;
|
||||
mod harness;
|
||||
|
||||
Reference in New Issue
Block a user