]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: provide more info on DEBUG=yes
authorPádraig Brady <P@draigBrady.com>
Tue, 2 May 2023 21:39:03 +0000 (22:39 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 2 May 2023 21:39:03 +0000 (22:39 +0100)
* README: State that DEBUG=yes is particularly useful with perl tests.
* tests/split/l-chunk.sh: Use the more standard $DEBUG variable
rather than an internal $DEBUGGING variable.

README
tests/split/l-chunk.sh

diff --git a/README b/README
index e90940b94313aaca3ad63d34ca5201a86add9b87..363155a371aa1b9f33167bd054e5f35a7087792c 100644 (file)
--- a/README
+++ b/README
@@ -96,8 +96,8 @@ run this command:
 
   make check TESTS=tests/df/df-P.sh VERBOSE=yes SUBDIRS=. >> log 2>&1
 
-For some tests, you can get even more detail by adding DEBUG=yes.
-Then include the contents of the file 'log' in your bug report.
+For some tests, particularly perl tests, you can get even more detail by adding
+DEBUG=yes. Then include the contents of the file 'log' in your bug report.
 
 
 ***************************************
index 2c287ee9f1706560c90857ee4d6ebd8eaee7a593..bc9ad122ccf52f46f4052497ae0673bb6dbac0a5 100755 (executable)
@@ -72,12 +72,11 @@ printf '%s' "\
 
 sed 's/00 *//g' exp > exp.elide_empty || framework_failure_
 
-DEBUGGING=
-test "$DEBUGGING" && test "$VERBOSE" && set +x
+test "$DEBUG" && test "$VERBOSE" && set +x
 for ELIDE_EMPTY in '' '-e'; do
   for IO_BLKSIZE in 1 2 5 10 80 100; do
     > out
-    test "$DEBUGGING" && printf "\n---io-blk-size=$IO_BLKSIZE $ELIDE_EMPTY\n"
+    test "$DEBUG" && printf "\n---io-blk-size=$IO_BLKSIZE $ELIDE_EMPTY\n"
     for N in 6 8 12 15 22; do
       rm -f x*
 
@@ -93,7 +92,7 @@ for ELIDE_EMPTY in '' '-e'; do
         compare chunk.k xab || fail=1
       fi
 
-      if test "$DEBUGGING"; then
+      if test "$DEBUG"; then
         # Output partition pattern
         size=$(printf "%s" "$lines" | wc -c)
         chunk_size=$(($size/$N))
@@ -120,7 +119,7 @@ for ELIDE_EMPTY in '' '-e'; do
     compare out $EXP || fail=1
   done
 done
-test "$DEBUGGING" && test "$VERBOSE" && set -x
+test "$DEBUG" && test "$VERBOSE" && set -x
 
 
 # Check extraction of particular chunks