test: add command logging to track test execution

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 16:19:09 -03:00
parent 6d365f7eed
commit 26198933c5

View File

@@ -329,10 +329,12 @@ mod tests {
// Test with no compression
let cmd = format!("echo {} | {} -c none none", INPUT_A, env);
println!("RUNNING: {}", cmd);
let output = run_sh(cmd.as_str());
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
let cmd = format!("{} --get none", env);
println!("RUNNING: {}", cmd);
let output = run_sh(cmd.as_str());
assert!(
output.status.success(),
@@ -346,10 +348,12 @@ mod tests {
// Test with lz4 compression
let cmd = format!("echo {} | {} -c lz4 lz4", INPUT_A, env);
println!("RUNNING: {}", cmd);
let output = run_sh(cmd.as_str());
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
let cmd = format!("{} --get lz4", env);
println!("RUNNING: {}", cmd);
let output = run_sh(cmd.as_str());
assert!(
output.status.success(),
@@ -363,10 +367,12 @@ mod tests {
// Test with gzip compression
let cmd = format!("echo {} | {} -c gzip gzip", INPUT_A, env);
println!("RUNNING: {}", cmd);
let output = run_sh(cmd.as_str());
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
let cmd = format!("{} --get gzip", env);
println!("RUNNING: {}", cmd);
let output = run_sh(cmd.as_str());
assert!(
output.status.success(),
@@ -379,10 +385,12 @@ mod tests {
// Test with bzip2 compression
let cmd = format!("echo {} | {} -c bzip2 bzip2", INPUT_A, env);
println!("RUNNING: {}", cmd);
let output = run_sh(cmd.as_str());
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
let cmd = format!("{} --get bzip2", env);
println!("RUNNING: {}", cmd);
let output = run_sh(cmd.as_str());
assert!(
output.status.success(),