Pádraig Brady wrote:
> It would be good to get output from
> make TESTS=tests/misc/tee.sh VERBOSE=yes SUBDIRS=. check
> to get more info on the tee one,

Attached here.

=========================================================
   GNU coreutils 9.1.198-e68b1: ./tests/test-suite.log
=========================================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/misc/tee
====================

++ initial_cwd_=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /home/haible/coreutils-9.1.198-e68b1/build-64-xlc gt-tee.sh.XXXX
+++ case $# in
+++ destdir_=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc
+++ template_=gt-tee.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ destdir_slash_=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/
+++ case $template_ in
++++ unset TMPDIR
+++ d=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/gt-tee.sh.C7V6
+++ case $d in
+++ :
+++ test -d /home/haible/coreutils-9.1.198-e68b1/build-64-xlc/gt-tee.sh.C7V6
++++ ls -dgo /home/haible/coreutils-9.1.198-e68b1/build-64-xlc/gt-tee.sh.C7V6
+++ perms='drwx------ 2 256 Mar 15 08:21 /home/haible/coreutils-9.1.198-e68b1/build-64-xlc/gt-tee.sh.C7V6'
+++ case $perms in
+++ :
+++ echo /home/haible/coreutils-9.1.198-e68b1/build-64-xlc/gt-tee.sh.C7V6
+++ return
++ test_dir_=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/gt-tee.sh.C7V6
++ cd /home/haible/coreutils-9.1.198-e68b1/build-64-xlc/gt-tee.sh.C7V6
++ case $srcdir in
++ srcdir=../..
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_='
'
++ IFS=' 	
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS=' 	
'
++ IFS=:
++ new_PATH=
++ sep_=
++ for dir in $PATH
++ case "$dir" in
++ test -d /home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src/.
++ new_PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /home/haible/prefix64/bin/.
++ new_PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /home/haible/bin/.
++ new_PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin:/home/haible/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/bin/.
++ new_PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin:/home/haible/bin:/usr/bin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /etc/.
++ new_PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin:/home/haible/bin:/usr/bin:/etc
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/sbin/.
++ new_PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin:/home/haible/bin:/usr/bin:/etc:/usr/sbin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/ucb/.
++ new_PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin:/home/haible/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /usr/bin/X11/.
++ new_PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin:/home/haible/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ test -d /sbin/.
++ new_PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin:/home/haible/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin
++ sep_=:
++ for dir in $PATH
++ case "$dir" in
++ IFS=' 	
'
++ PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin:/home/haible/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/./src
+ case $abs_path_dir_ in
+ PATH=/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/./src:/home/haible/coreutils-9.1.198-e68b1/build-64-xlc/src:/home/haible/prefix64/bin:/home/haible/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin
+ create_exe_shims_ /home/haible/coreutils-9.1.198-e68b1/build-64-xlc/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ tee
+ require_built_ tee
+ skip_=no
+ for i in "$@"
+ case " $built_programs " in
+ test no = yes
+ test yes = yes
+ local i
+ for i in $*
+ env tee --version
tee (GNU coreutils) 9.1.198-e68b1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Parker, Richard M. Stallman, and David MacKenzie.
+ echo line
+ for n in 0 1 2 12 13
++ seq 0
+ files=
+ rm -f
+ tee
+ for f in out $files
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ sample out
+ diff -u sample out
+ for n in 0 1 2 12 13
++ seq 1
+ files=1
+ rm -f 1
+ tee 1
+ for f in out $files
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ sample out
+ diff -u sample out
+ for f in out $files
+ compare sample 1
+ compare_dev_null_ sample 1
+ test 2 = 2
+ test xsample = x/dev/null
+ test x1 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 1
+ diff -u sample 1
+ for n in 0 1 2 12 13
++ seq 2
+ files='1
2'
+ rm -f 1 2
+ tee 1 2
+ for f in out $files
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ sample out
+ diff -u sample out
+ for f in out $files
+ compare sample 1
+ compare_dev_null_ sample 1
+ test 2 = 2
+ test xsample = x/dev/null
+ test x1 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 1
+ diff -u sample 1
+ for f in out $files
+ compare sample 2
+ compare_dev_null_ sample 2
+ test 2 = 2
+ test xsample = x/dev/null
+ test x2 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 2
+ diff -u sample 2
+ for n in 0 1 2 12 13
++ seq 12
+ files='1
2
3
4
5
6
7
8
9
10
11
12'
+ rm -f 1 2 3 4 5 6 7 8 9 10 11 12
+ tee 1 2 3 4 5 6 7 8 9 10 11 12
+ for f in out $files
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ sample out
+ diff -u sample out
+ for f in out $files
+ compare sample 1
+ compare_dev_null_ sample 1
+ test 2 = 2
+ test xsample = x/dev/null
+ test x1 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 1
+ diff -u sample 1
+ for f in out $files
+ compare sample 2
+ compare_dev_null_ sample 2
+ test 2 = 2
+ test xsample = x/dev/null
+ test x2 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 2
+ diff -u sample 2
+ for f in out $files
+ compare sample 3
+ compare_dev_null_ sample 3
+ test 2 = 2
+ test xsample = x/dev/null
+ test x3 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 3
+ diff -u sample 3
+ for f in out $files
+ compare sample 4
+ compare_dev_null_ sample 4
+ test 2 = 2
+ test xsample = x/dev/null
+ test x4 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 4
+ diff -u sample 4
+ for f in out $files
+ compare sample 5
+ compare_dev_null_ sample 5
+ test 2 = 2
+ test xsample = x/dev/null
+ test x5 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 5
+ diff -u sample 5
+ for f in out $files
+ compare sample 6
+ compare_dev_null_ sample 6
+ test 2 = 2
+ test xsample = x/dev/null
+ test x6 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 6
+ diff -u sample 6
+ for f in out $files
+ compare sample 7
+ compare_dev_null_ sample 7
+ test 2 = 2
+ test xsample = x/dev/null
+ test x7 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 7
+ diff -u sample 7
+ for f in out $files
+ compare sample 8
+ compare_dev_null_ sample 8
+ test 2 = 2
+ test xsample = x/dev/null
+ test x8 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 8
+ diff -u sample 8
+ for f in out $files
+ compare sample 9
+ compare_dev_null_ sample 9
+ test 2 = 2
+ test xsample = x/dev/null
+ test x9 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 9
+ diff -u sample 9
+ for f in out $files
+ compare sample 10
+ compare_dev_null_ sample 10
+ test 2 = 2
+ test xsample = x/dev/null
+ test x10 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 10
+ diff -u sample 10
+ for f in out $files
+ compare sample 11
+ compare_dev_null_ sample 11
+ test 2 = 2
+ test xsample = x/dev/null
+ test x11 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 11
+ diff -u sample 11
+ for f in out $files
+ compare sample 12
+ compare_dev_null_ sample 12
+ test 2 = 2
+ test xsample = x/dev/null
+ test x12 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 12
+ diff -u sample 12
+ for n in 0 1 2 12 13
++ seq 13
+ files='1
2
3
4
5
6
7
8
9
10
11
12
13'
+ rm -f 1 2 3 4 5 6 7 8 9 10 11 12 13
+ tee 1 2 3 4 5 6 7 8 9 10 11 12 13
+ for f in out $files
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ sample out
+ diff -u sample out
+ for f in out $files
+ compare sample 1
+ compare_dev_null_ sample 1
+ test 2 = 2
+ test xsample = x/dev/null
+ test x1 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 1
+ diff -u sample 1
+ for f in out $files
+ compare sample 2
+ compare_dev_null_ sample 2
+ test 2 = 2
+ test xsample = x/dev/null
+ test x2 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 2
+ diff -u sample 2
+ for f in out $files
+ compare sample 3
+ compare_dev_null_ sample 3
+ test 2 = 2
+ test xsample = x/dev/null
+ test x3 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 3
+ diff -u sample 3
+ for f in out $files
+ compare sample 4
+ compare_dev_null_ sample 4
+ test 2 = 2
+ test xsample = x/dev/null
+ test x4 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 4
+ diff -u sample 4
+ for f in out $files
+ compare sample 5
+ compare_dev_null_ sample 5
+ test 2 = 2
+ test xsample = x/dev/null
+ test x5 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 5
+ diff -u sample 5
+ for f in out $files
+ compare sample 6
+ compare_dev_null_ sample 6
+ test 2 = 2
+ test xsample = x/dev/null
+ test x6 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 6
+ diff -u sample 6
+ for f in out $files
+ compare sample 7
+ compare_dev_null_ sample 7
+ test 2 = 2
+ test xsample = x/dev/null
+ test x7 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 7
+ diff -u sample 7
+ for f in out $files
+ compare sample 8
+ compare_dev_null_ sample 8
+ test 2 = 2
+ test xsample = x/dev/null
+ test x8 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 8
+ diff -u sample 8
+ for f in out $files
+ compare sample 9
+ compare_dev_null_ sample 9
+ test 2 = 2
+ test xsample = x/dev/null
+ test x9 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 9
+ diff -u sample 9
+ for f in out $files
+ compare sample 10
+ compare_dev_null_ sample 10
+ test 2 = 2
+ test xsample = x/dev/null
+ test x10 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 10
+ diff -u sample 10
+ for f in out $files
+ compare sample 11
+ compare_dev_null_ sample 11
+ test 2 = 2
+ test xsample = x/dev/null
+ test x11 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 11
+ diff -u sample 11
+ for f in out $files
+ compare sample 12
+ compare_dev_null_ sample 12
+ test 2 = 2
+ test xsample = x/dev/null
+ test x12 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 12
+ diff -u sample 12
+ for f in out $files
+ compare sample 13
+ compare_dev_null_ sample 13
+ test 2 = 2
+ test xsample = x/dev/null
+ test x13 = x/dev/null
+ return 2
+ case $? in
+ compare_ sample 13
+ diff -u sample 13
+ tee -
+ compare sample ./-
+ compare_dev_null_ sample ./-
+ test 2 = 2
+ test xsample = x/dev/null
+ test x./- = x/dev/null
+ return 2
+ case $? in
+ compare_ sample ./-
+ diff -u sample ./-
+ compare sample out
+ compare_dev_null_ sample out
+ test 2 = 2
+ test xsample = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ sample out
+ diff -u sample out
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ test -w /dev/full
+ retry_delay_ tee_exited .1 7
+ local test_func=tee_exited
+ local init_delay=.1
+ local max_n_tries=7
+ shift 3
+ local attempt=1
+ local num_sleeps=1
+ local time_fail
+ test 1 -le 7
+ timeout 10 tee -p
+ :
++ gawk -v n=1 -v s=.1 'BEGIN { print s * n }'
+ local delay=0.1
+ tee_exited 0.1
+ sleep 0.1
+ test -f tee.exited
+ time_fail=1
++ expr 1 + 1
+ attempt=2
++ expr 1 '*' 2
+ num_sleeps=2
+ test 2 -le 7
++ gawk -v n=2 -v s=.1 'BEGIN { print s * n }'
+ local delay=0.2
+ tee_exited 0.2
+ sleep 0.2
+ test -f tee.exited
+ time_fail=1
++ expr 2 + 1
+ attempt=3
++ expr 2 '*' 2
+ num_sleeps=4
+ test 3 -le 7
++ gawk -v n=4 -v s=.1 'BEGIN { print s * n }'
+ local delay=0.4
+ tee_exited 0.4
+ sleep 0.4
+ test -f tee.exited
+ time_fail=1
++ expr 3 + 1
+ attempt=4
++ expr 4 '*' 2
+ num_sleeps=8
+ test 4 -le 7
++ gawk -v n=8 -v s=.1 'BEGIN { print s * n }'
+ local delay=0.8
+ tee_exited 0.8
+ sleep 0.8
+ test -f tee.exited
+ time_fail=1
++ expr 4 + 1
+ attempt=5
++ expr 8 '*' 2
+ num_sleeps=16
+ test 5 -le 7
++ gawk -v n=16 -v s=.1 'BEGIN { print s * n }'
+ local delay=1.6
+ tee_exited 1.6
+ sleep 1.6
+ test -f tee.exited
+ time_fail=1
++ expr 5 + 1
+ attempt=6
++ expr 16 '*' 2
+ num_sleeps=32
+ test 6 -le 7
++ gawk -v n=32 -v s=.1 'BEGIN { print s * n }'
+ local delay=3.2
+ tee_exited 3.2
+ sleep 3.2
+ test -f tee.exited
+ time_fail=1
++ expr 6 + 1
+ attempt=7
++ expr 32 '*' 2
+ num_sleeps=64
+ test 7 -le 7
++ gawk -v n=64 -v s=.1 'BEGIN { print s * n }'
+ local delay=6.4
+ tee_exited 6.4
+ sleep 6.4
+ test -f tee.exited
+ time_fail=1
++ expr 7 + 1
+ attempt=8
++ expr 64 '*' 2
+ num_sleeps=128
+ test 8 -le 7
+ test 1 = 0
++ wc -l
+ test 0 = 0
+ test -f tee.exited
+ fail=1
+ touch file.ro
+ chmod a-w file.ro
+ returns_ 1 tee -p file.ro
tee: file.ro: Permission denied
+ mkfifo_or_skip_ fifo
+ test 1 = 1
+ mkfifo fifo
+ pid=43712622
+ read_fifo_delayed
+ dd count=20 bs=100K if=/dev/zero status=none
+ sleep .1
+ dd count=0 oflag=nonblock status=none
+ tee
+ timeout 10 dd of=/dev/null status=none
+ test -f tee.fail
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ pipe_status=141
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ returns_ 141 timeout 10 tee ./e/noent
++ wc -l
+ test 1 = 1
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ timeout 10 tee -p
++ wc -l
+ test 0 = 0
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ returns_ 1 timeout 10 tee --output-error=warn
++ wc -l
+ test 1 = 1
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ returns_ 1 timeout 10 tee --output-error=exit /dev/null
++ wc -l
+ test 1 = 1
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ returns_ 1 timeout 10 tee --output-error=exit ./e/noent
++ wc -l
+ test 1 = 1
+ read_fifo
+ timeout 10 dd count=1 if=fifo of=/dev/null status=none
+ yes
+ timeout 10 tee --output-error=exit-nopipe
++ wc -l
+ test 0 = 0
+ wait
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ kill 43712622
+ test '' = yes
+ cd /home/haible/coreutils-9.1.198-e68b1/build-64-xlc
+ chmod -R u+rwx /home/haible/coreutils-9.1.198-e68b1/build-64-xlc/gt-tee.sh.C7V6
+ rm -rf /home/haible/coreutils-9.1.198-e68b1/build-64-xlc/gt-tee.sh.C7V6
+ exit 1
FAIL tests/misc/tee.sh (exit status: 1)

Reply via email to