From 8e70880af1c606e600667add063dab31696b4b46 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 23 May 2020 13:46:00 +0200 Subject: [PATCH] tests: show logs * examples/c/bistromathic/bistromathic.test, examples/test: here. --- examples/c/bistromathic/bistromathic.test | 6 +++--- examples/test | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/c/bistromathic/bistromathic.test b/examples/c/bistromathic/bistromathic.test index 48b30a4c..c2d3dc37 100755 --- a/examples/c/bistromathic/bistromathic.test +++ b/examples/c/bistromathic/bistromathic.test @@ -45,7 +45,7 @@ echo >perfect '> 0 echo >ok '0' echo '0' | prog >effective -echo "checking for readline output" +echo "checking for readline output..." if diff perfect effective; then # Alles ist gut. strip_prompt=false @@ -269,8 +269,8 @@ fi # On Windows10/MSYS2 the ^G coming from completion is not # emitted the same way # (https://lists.gnu.org/r/bug-bison/2020-05/msg00076.html). -echo "checking for kernel name" -case `uname -s` in +echo "checking for kernel name... $(uname -s)" +case $(uname -s) in (MSYS*) echo "SKIP: this is Windows/MSYS" exit $status diff --git a/examples/test b/examples/test index f58eed9e..81076701 100755 --- a/examples/test +++ b/examples/test @@ -36,10 +36,11 @@ strip_prompt=false # If diff supports --strip-trailing-cr, use it, to avoid EOL issues # when testing Java programs on Windows. -echo "checking for diff --strip-trailing-cr" +echo "checking for diff --strip-trailing-cr..." if diff --strip-trailing-cr "$1" "$1"; then diff_opts=--strip-trailing-cr fi +echo "checking for diff --strip-trailing-cr... $diff_opts" # The exercised program. abs_medir=$cwd/examples/$medir