From 26198933c57f77113208d63a08d4269a57794dc8 Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Mon, 12 May 2025 16:19:09 -0300 Subject: [PATCH] test: add command logging to track test execution --- src/tests.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests.rs b/src/tests.rs index 4555d6e..d66eecb 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -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(),