summaryrefslogtreecommitdiff
path: root/tests/split/l-chunk.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2023-05-02 22:39:03 +0100
committerPádraig Brady <P@draigBrady.com>2023-05-02 22:39:03 +0100
commit7223651ad194a5868b58c1be6c7452fd3ca2f75a (patch)
tree302660b345b39ec9bb31d5f4a1ef0bf6c9939035 /tests/split/l-chunk.sh
parent6d683a1d020894d549986bd7b9e78b77b35650a2 (diff)
downloadcoreutils-7223651ad194a5868b58c1be6c7452fd3ca2f75a.tar.gz
tests: provide more info on DEBUG=yes
* 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.
Diffstat (limited to 'tests/split/l-chunk.sh')
-rwxr-xr-xtests/split/l-chunk.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/split/l-chunk.sh b/tests/split/l-chunk.sh
index 2c287ee9f..bc9ad122c 100755
--- a/tests/split/l-chunk.sh
+++ b/tests/split/l-chunk.sh
@@ -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