Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial features (no cache invalidation support) #1

Merged
merged 21 commits into from
Dec 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
print debug
  • Loading branch information
LittleBoxOfSunshine committed Dec 19, 2023
commit d6b936a62341c57f70d555305bf2923c1ba0930e
12 changes: 10 additions & 2 deletions tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn fake_workspace_in_tempdir() -> TestEnvironment {
}

pub fn build_environment(environment: &TestEnvironment) {
std::process::Command::new("cargo")
let result = std::process::Command::new("cargo")
.current_dir(
environment
.path
Expand All @@ -47,10 +47,14 @@ pub fn build_environment(environment: &TestEnvironment) {
.arg("build")
.output()
.expect("failed to execute process");

println!("{:?}", result.status);
println!("{:?}", std::str::from_utf8(&result.stdout).unwrap());
println!("{:?}", std::str::from_utf8(&result.stderr).unwrap());
}

pub fn build_environment_with_target(environment: &TestEnvironment, target: String) {
std::process::Command::new("cargo")
let result = std::process::Command::new("cargo")
.current_dir(
environment
.path
Expand All @@ -62,6 +66,10 @@ pub fn build_environment_with_target(environment: &TestEnvironment, target: Stri
.arg(target)
.output()
.expect("failed to execute process");

println!("{:?}", result.status);
println!("{:?}", std::str::from_utf8(&result.stdout).unwrap());
println!("{:?}", std::str::from_utf8(&result.stderr).unwrap());
}

pub fn validate(environment: &TestEnvironment, target: Option<String>) {
Expand Down