test: add command logging to track test execution
This commit is contained in:
@@ -329,10 +329,12 @@ mod tests {
|
|||||||
|
|
||||||
// Test with no compression
|
// Test with no compression
|
||||||
let cmd = format!("echo {} | {} -c none none", INPUT_A, env);
|
let cmd = format!("echo {} | {} -c none none", INPUT_A, env);
|
||||||
|
println!("RUNNING: {}", cmd);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
|
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
|
||||||
|
|
||||||
let cmd = format!("{} --get none", env);
|
let cmd = format!("{} --get none", env);
|
||||||
|
println!("RUNNING: {}", cmd);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(
|
assert!(
|
||||||
output.status.success(),
|
output.status.success(),
|
||||||
@@ -346,10 +348,12 @@ mod tests {
|
|||||||
|
|
||||||
// Test with lz4 compression
|
// Test with lz4 compression
|
||||||
let cmd = format!("echo {} | {} -c lz4 lz4", INPUT_A, env);
|
let cmd = format!("echo {} | {} -c lz4 lz4", INPUT_A, env);
|
||||||
|
println!("RUNNING: {}", cmd);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
|
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
|
||||||
|
|
||||||
let cmd = format!("{} --get lz4", env);
|
let cmd = format!("{} --get lz4", env);
|
||||||
|
println!("RUNNING: {}", cmd);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(
|
assert!(
|
||||||
output.status.success(),
|
output.status.success(),
|
||||||
@@ -363,10 +367,12 @@ mod tests {
|
|||||||
|
|
||||||
// Test with gzip compression
|
// Test with gzip compression
|
||||||
let cmd = format!("echo {} | {} -c gzip gzip", INPUT_A, env);
|
let cmd = format!("echo {} | {} -c gzip gzip", INPUT_A, env);
|
||||||
|
println!("RUNNING: {}", cmd);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
|
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
|
||||||
|
|
||||||
let cmd = format!("{} --get gzip", env);
|
let cmd = format!("{} --get gzip", env);
|
||||||
|
println!("RUNNING: {}", cmd);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(
|
assert!(
|
||||||
output.status.success(),
|
output.status.success(),
|
||||||
@@ -379,10 +385,12 @@ mod tests {
|
|||||||
|
|
||||||
// Test with bzip2 compression
|
// Test with bzip2 compression
|
||||||
let cmd = format!("echo {} | {} -c bzip2 bzip2", INPUT_A, env);
|
let cmd = format!("echo {} | {} -c bzip2 bzip2", INPUT_A, env);
|
||||||
|
println!("RUNNING: {}", cmd);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
|
assert!(output.status.success(), "Command failed: {} {}", cmd, output.status);
|
||||||
|
|
||||||
let cmd = format!("{} --get bzip2", env);
|
let cmd = format!("{} --get bzip2", env);
|
||||||
|
println!("RUNNING: {}", cmd);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(
|
assert!(
|
||||||
output.status.success(),
|
output.status.success(),
|
||||||
|
|||||||
Reference in New Issue
Block a user