tests: show logs

* examples/c/bistromathic/bistromathic.test, examples/test: here.
This commit is contained in:
Akim Demaille
2020-05-23 13:46:00 +02:00
parent 8ece778cb8
commit 12f4091de4
2 changed files with 5 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ echo >perfect '> 0
echo >ok '0' echo >ok '0'
echo '0' | prog >effective echo '0' | prog >effective
echo "checking for readline output" echo "checking for readline output..."
if diff perfect effective; then if diff perfect effective; then
# Alles ist gut. # Alles ist gut.
strip_prompt=false strip_prompt=false
@@ -269,8 +269,8 @@ fi
# On Windows10/MSYS2 the ^G coming from <tab> completion is not # On Windows10/MSYS2 the ^G coming from <tab> completion is not
# emitted the same way # emitted the same way
# (https://lists.gnu.org/r/bug-bison/2020-05/msg00076.html). # (https://lists.gnu.org/r/bug-bison/2020-05/msg00076.html).
echo "checking for kernel name" echo "checking for kernel name... $(uname -s)"
case `uname -s` in case $(uname -s) in
(MSYS*) (MSYS*)
echo "SKIP: this is Windows/MSYS" echo "SKIP: this is Windows/MSYS"
exit $status exit $status

View File

@@ -36,10 +36,11 @@ strip_prompt=false
# If diff supports --strip-trailing-cr, use it, to avoid EOL issues # If diff supports --strip-trailing-cr, use it, to avoid EOL issues
# when testing Java programs on Windows. # 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 if diff --strip-trailing-cr "$1" "$1"; then
diff_opts=--strip-trailing-cr diff_opts=--strip-trailing-cr
fi fi
echo "checking for diff --strip-trailing-cr... $diff_opts"
# The exercised program. # The exercised program.
abs_medir=$cwd/examples/$medir abs_medir=$cwd/examples/$medir