]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: split stdout and stderr
authorKarel Zak <kzak@redhat.com>
Fri, 30 Aug 2019 13:50:07 +0000 (15:50 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Aug 2019 13:50:07 +0000 (15:50 +0200)
commitcbf858aa085e25aa5afd1d06decaea6e14a8963f
treeb4a9e656a9b574561a03f99fc60d8d312e6c7ff3
parent7837cd491a6c99aa69a31082b28a0c8b6045b7bc
tests: split stdout and stderr

* add $TS_ERRLOG for script stderr output
* add optional $TS_EXPECTED_ERR which points to expected/*/*.err

This change allows to keep track about stderr output from our commands
(already found bug in sfdisk...).

We do not have to depend on fragile stdout vs. stderr order (due to
different buffering semantic in different libc, etc.).

Signed-off-by: Karel Zak <kzak@redhat.com>
307 files changed:
tests/expected/blkdiscard/offsets
tests/expected/blkdiscard/offsets.err [new file with mode: 0644]
tests/expected/cramfs/fsck-bad-header-nopad-4K-be
tests/expected/cramfs/fsck-bad-header-nopad-4K-be.err [new file with mode: 0644]
tests/expected/cramfs/fsck-bad-header-nopad-4K-le
tests/expected/cramfs/fsck-bad-header-nopad-4K-le.err [new file with mode: 0644]
tests/expected/cramfs/fsck-bad-header-pad-4K-be
tests/expected/cramfs/fsck-bad-header-pad-4K-be.err [new file with mode: 0644]
tests/expected/cramfs/fsck-bad-header-pad-4K-le
tests/expected/cramfs/fsck-bad-header-pad-4K-le.err [new file with mode: 0644]
tests/expected/cramfs/fsck-bad-header-pad-64K-be
tests/expected/cramfs/fsck-bad-header-pad-64K-be.err [new file with mode: 0644]
tests/expected/cramfs/fsck-bad-header-pad-64K-le
tests/expected/cramfs/fsck-bad-header-pad-64K-le.err [new file with mode: 0644]
tests/expected/cramfs/fsck-bad-header.err [new file with mode: 0644]
tests/expected/fdisk/gpt-resize
tests/expected/fdisk/gpt-resize.err [new file with mode: 0644]
tests/expected/fdisk/oddinput
tests/expected/fdisk/oddinput.err [new file with mode: 0644]
tests/expected/fincore/count.4096
tests/expected/fincore/count.65536
tests/expected/fincore/count.err.4096 [new file with mode: 0644]
tests/expected/fincore/count.err.65536 [new file with mode: 0644]
tests/expected/fincore/count.err.nosize [new file with mode: 0644]
tests/expected/fincore/count.nosize
tests/expected/getopt/basic.err [new file with mode: 0644]
tests/expected/getopt/options-alternative_option_clash.err [new file with mode: 0644]
tests/expected/getopt/options-alternative_option_long.err [new file with mode: 0644]
tests/expected/getopt/options-alternative_option_short.err [new file with mode: 0644]
tests/expected/getopt/options-compatible
tests/expected/getopt/options-compatible.err [new file with mode: 0644]
tests/expected/getopt/options-csh.err [new file with mode: 0644]
tests/expected/getopt/options-invalid_getopt_option
tests/expected/getopt/options-invalid_getopt_option.err [new file with mode: 0644]
tests/expected/getopt/options-invocation_model_one.err [new file with mode: 0644]
tests/expected/getopt/options-invocation_model_three_as_one.err [new file with mode: 0644]
tests/expected/getopt/options-invocation_model_two_as_one.err [new file with mode: 0644]
tests/expected/getopt/options-invocation_without_parameters
tests/expected/getopt/options-invocation_without_parameters.err [new file with mode: 0644]
tests/expected/getopt/options-long_option_ambiguous_1
tests/expected/getopt/options-long_option_ambiguous_1.err [new file with mode: 0644]
tests/expected/getopt/options-longopts.err [new file with mode: 0644]
tests/expected/getopt/options-name_option_long
tests/expected/getopt/options-name_option_long.err [new file with mode: 0644]
tests/expected/getopt/options-name_option_short
tests/expected/getopt/options-name_option_short.err [new file with mode: 0644]
tests/expected/getopt/options-no-arguments
tests/expected/getopt/options-no-arguments.err [new file with mode: 0644]
tests/expected/getopt/options-non-option.err [new file with mode: 0644]
tests/expected/getopt/options-posix_correctly.err [new file with mode: 0644]
tests/expected/getopt/options-quiet_option_long.err [new file with mode: 0644]
tests/expected/getopt/options-quiet_option_short.err [new file with mode: 0644]
tests/expected/getopt/options-quiet_output_option_long
tests/expected/getopt/options-quiet_output_option_long.err [new file with mode: 0644]
tests/expected/getopt/options-quiet_output_option_short
tests/expected/getopt/options-quiet_output_option_short.err [new file with mode: 0644]
tests/expected/getopt/options-same_long_short_options.err [new file with mode: 0644]
tests/expected/getopt/options-sh.err [new file with mode: 0644]
tests/expected/getopt/options-test_for_enhanced_getopt.err [new file with mode: 0644]
tests/expected/getopt/options-unknown_options
tests/expected/getopt/options-unknown_options.err [new file with mode: 0644]
tests/expected/getopt/options-unquoted_option_bash.err [new file with mode: 0644]
tests/expected/getopt/options-unquoted_option_tcsh.err [new file with mode: 0644]
tests/expected/getopt/options-weird_quoting_bash.err [new file with mode: 0644]
tests/expected/getopt/options-weird_quoting_tcsh.err [new file with mode: 0644]
tests/expected/getopt/options.err [new file with mode: 0644]
tests/expected/kill/all_processes
tests/expected/kill/all_processes.err [new file with mode: 0644]
tests/expected/logger/errors-check_socket.err [new file with mode: 0644]
tests/expected/logger/errors-id_with_space
tests/expected/logger/errors-id_with_space.err [new file with mode: 0644]
tests/expected/logger/errors-invalid_prio
tests/expected/logger/errors-invalid_prio.err [new file with mode: 0644]
tests/expected/logger/errors-invalid_socket
tests/expected/logger/errors-invalid_socket.err [new file with mode: 0644]
tests/expected/logger/errors-kern_priority
tests/expected/logger/errors-kern_priority.err [new file with mode: 0644]
tests/expected/logger/errors-kern_priority_numeric
tests/expected/logger/errors-kern_priority_numeric.err [new file with mode: 0644]
tests/expected/logger/errors-multi-line
tests/expected/logger/errors-multi-line.err [new file with mode: 0644]
tests/expected/logger/errors-rfc5424_exceed_size
tests/expected/logger/errors-rfc5424_exceed_size.err [new file with mode: 0644]
tests/expected/logger/errors-rfc5424_msgid_with_space
tests/expected/logger/errors-rfc5424_msgid_with_space.err [new file with mode: 0644]
tests/expected/logger/errors-tag_with_space
tests/expected/logger/errors-tag_with_space.err [new file with mode: 0644]
tests/expected/logger/errors-tcp
tests/expected/logger/errors-tcp.err [new file with mode: 0644]
tests/expected/logger/formats-check_socket
tests/expected/logger/formats-check_socket.err [new file with mode: 0644]
tests/expected/logger/formats-octet_counting
tests/expected/logger/formats-octet_counting.err [new file with mode: 0644]
tests/expected/logger/formats-priorities
tests/expected/logger/formats-priorities.err [new file with mode: 0644]
tests/expected/logger/formats-rfc3164
tests/expected/logger/formats-rfc3164.err [new file with mode: 0644]
tests/expected/logger/formats-rfc5424_msgid
tests/expected/logger/formats-rfc5424_msgid.err [new file with mode: 0644]
tests/expected/logger/formats-rfc5424_nohost
tests/expected/logger/formats-rfc5424_nohost.err [new file with mode: 0644]
tests/expected/logger/formats-rfc5424_notime
tests/expected/logger/formats-rfc5424_notime.err [new file with mode: 0644]
tests/expected/logger/formats-rfc5424_simple
tests/expected/logger/formats-rfc5424_simple.err [new file with mode: 0644]
tests/expected/logger/journald
tests/expected/logger/journald.err [new file with mode: 0644]
tests/expected/logger/options-check_socket
tests/expected/logger/options-check_socket.err [new file with mode: 0644]
tests/expected/logger/options-input_file_empty_line
tests/expected/logger/options-input_file_empty_line.err [new file with mode: 0644]
tests/expected/logger/options-input_file_prio_prefix
tests/expected/logger/options-input_file_prio_prefix.err [new file with mode: 0644]
tests/expected/logger/options-input_file_simple
tests/expected/logger/options-input_file_simple.err [new file with mode: 0644]
tests/expected/logger/options-input_file_skip_empty
tests/expected/logger/options-input_file_skip_empty.err [new file with mode: 0644]
tests/expected/logger/options-log_pid
tests/expected/logger/options-log_pid.err [new file with mode: 0644]
tests/expected/logger/options-log_pid_define
tests/expected/logger/options-log_pid_define.err [new file with mode: 0644]
tests/expected/logger/options-log_pid_long
tests/expected/logger/options-log_pid_long.err [new file with mode: 0644]
tests/expected/logger/options-log_pid_no_arg
tests/expected/logger/options-log_pid_no_arg.err [new file with mode: 0644]
tests/expected/logger/options-simple
tests/expected/logger/options-simple.err [new file with mode: 0644]
tests/expected/logger/options.err [new file with mode: 0644]
tests/expected/minix/fsck
tests/expected/minix/fsck.err [new file with mode: 0644]
tests/expected/misc/ionice
tests/expected/misc/ionice.err [new file with mode: 0644]
tests/expected/misc/mountpoint-mutually-exclusive
tests/expected/misc/mountpoint-mutually-exclusive.err [new file with mode: 0644]
tests/expected/misc/setarch-options
tests/expected/misc/setarch-options.err [new file with mode: 0644]
tests/expected/misc/strtosize
tests/expected/misc/strtosize.err [new file with mode: 0644]
tests/expected/sfdisk/dos-explicit-size
tests/expected/sfdisk/dos-explicit-size.err [new file with mode: 0644]
tests/expected/sfdisk/dos-read-dump
tests/expected/sfdisk/dos-read-dump.err [new file with mode: 0644]
tests/expected/sfdisk/gpt-attrs
tests/expected/sfdisk/gpt-attrs-broken-guid
tests/expected/sfdisk/gpt-attrs-broken-guid.err [new file with mode: 0644]
tests/expected/sfdisk/gpt-attrs-broken-nosep
tests/expected/sfdisk/gpt-attrs-broken-nosep.err [new file with mode: 0644]
tests/expected/sfdisk/gpt-attrs-guid
tests/expected/sfdisk/gpt-attrs-guid.err [new file with mode: 0644]
tests/expected/sfdisk/gpt-attrs-space
tests/expected/sfdisk/gpt-attrs-space.err [new file with mode: 0644]
tests/expected/sfdisk/gpt-attrs-unsupported
tests/expected/sfdisk/gpt-attrs-unsupported.err [new file with mode: 0644]
tests/expected/sfdisk/gpt-attrs-with-typo
tests/expected/sfdisk/gpt-attrs-with-typo.err [new file with mode: 0644]
tests/expected/sfdisk/gpt-attrs.err [new file with mode: 0644]
tests/expected/sfdisk/gpt-list-pmbr
tests/expected/sfdisk/gpt-list-pmbr.err [new file with mode: 0644]
tests/expected/sfdisk/script-broken-1
tests/expected/sfdisk/script-broken-1.err [new file with mode: 0644]
tests/expected/sfdisk/script-broken-2
tests/expected/sfdisk/script-broken-2.err [new file with mode: 0644]
tests/expected/sfdisk/script-broken-3
tests/expected/sfdisk/script-broken-3.err [new file with mode: 0644]
tests/expected/sfdisk/script-broken-4
tests/expected/sfdisk/script-broken-4.err [new file with mode: 0644]
tests/expected/sfdisk/script-broken-5
tests/expected/sfdisk/script-broken-5.err [new file with mode: 0644]
tests/expected/sfdisk/wipe-fs-to-dos
tests/expected/sfdisk/wipe-fs-to-dos.err [new file with mode: 0644]
tests/expected/sfdisk/wipe-gpt-to-dos-auto.err [new file with mode: 0644]
tests/expected/sfdisk/wipe-gpt-to-dos.err [new file with mode: 0644]
tests/expected/sfdisk/wipe-partition
tests/expected/sfdisk/wipe-partition.err [new file with mode: 0644]
tests/expected/sfdisk/wipe.err [new file with mode: 0644]
tests/functions.sh
tests/ts/blkdiscard/offsets
tests/ts/blkid/dm-err
tests/ts/blkid/low-probe
tests/ts/blkid/md-raid0-whole
tests/ts/blkid/md-raid1-part
tests/ts/blkid/md-raid1-whole
tests/ts/colcrt/functional
tests/ts/colcrt/regressions
tests/ts/colrm/rm2-2
tests/ts/column/columnate
tests/ts/column/invalid-multibyte
tests/ts/column/multi-file
tests/ts/column/table
tests/ts/cramfs/doubles
tests/ts/cramfs/fsck-bad-header
tests/ts/cramfs/fsck-endianness
tests/ts/cramfs/mkfs
tests/ts/cramfs/mkfs-endianness
tests/ts/dmesg/indentation
tests/ts/fdisk/align-512-4K
tests/ts/fdisk/align-512-4K-63
tests/ts/fdisk/align-512-4K-md
tests/ts/fdisk/align-512-512
tests/ts/fdisk/align-512-512-topology
tests/ts/fdisk/bsd
tests/ts/fdisk/gpt
tests/ts/fdisk/gpt-resize
tests/ts/fdisk/mbr-dos-mode
tests/ts/fdisk/mbr-nondos-mode
tests/ts/fdisk/oddinput
tests/ts/fdisk/sunlabel
tests/ts/fincore/count
tests/ts/fsck/ismounted
tests/ts/getopt/basic
tests/ts/getopt/options
tests/ts/hardlink/options
tests/ts/hexdump/format-strings
tests/ts/ipcs/mk-rm-msg
tests/ts/ipcs/mk-rm-sem
tests/ts/ipcs/mk-rm-shm
tests/ts/isosize/print-size
tests/ts/kill/all_processes
tests/ts/kill/name_to_number
tests/ts/kill/options
tests/ts/kill/print_pid
tests/ts/kill/queue
tests/ts/libfdisk/gpt
tests/ts/libfdisk/mkpart
tests/ts/libfdisk/mkpart-full
tests/ts/libmount/context
tests/ts/libmount/context-py
tests/ts/libmount/context-utab
tests/ts/libmount/context-utab-py
tests/ts/libmount/loop
tests/ts/libmount/loop-overlay
tests/ts/libmount/utils
tests/ts/libsmartcols/fromfile
tests/ts/libsmartcols/title
tests/ts/logger/errors
tests/ts/logger/formats
tests/ts/logger/journald
tests/ts/logger/options
tests/ts/lsblk/lsblk
tests/ts/lscpu/lscpu
tests/ts/lsmem/lsmem
tests/ts/minix/fsck
tests/ts/minix/fsck-images
tests/ts/minix/mkfs
tests/ts/misc/fallocate
tests/ts/misc/flock
tests/ts/misc/ionice
tests/ts/misc/line
tests/ts/misc/mbsencode
tests/ts/misc/mcookie
tests/ts/misc/mountpoint
tests/ts/misc/rev
tests/ts/misc/setarch
tests/ts/misc/setsid
tests/ts/misc/strtosize
tests/ts/misc/swaplabel
tests/ts/misc/ul
tests/ts/more/regexp
tests/ts/more/squeeze
tests/ts/mount/devname
tests/ts/mount/fslists
tests/ts/mount/fstab-btrfs
tests/ts/mount/fstab-devname
tests/ts/mount/fstab-devname2label
tests/ts/mount/fstab-devname2uuid
tests/ts/mount/fstab-label
tests/ts/mount/fstab-label2devname
tests/ts/mount/fstab-label2uuid
tests/ts/mount/fstab-loop
tests/ts/mount/fstab-none
tests/ts/mount/fstab-symlink
tests/ts/mount/fstab-uuid
tests/ts/mount/fstab-uuid2devname
tests/ts/mount/fstab-uuid2label
tests/ts/mount/label
tests/ts/mount/regfile
tests/ts/mount/shared-subtree
tests/ts/mount/umount-alltargets
tests/ts/mount/umount-recursive
tests/ts/mount/uuid
tests/ts/namei/logic
tests/ts/partx/partx
tests/ts/partx/partx-image
tests/ts/rename/basic
tests/ts/rename/exit_codes
tests/ts/rename/overwrite
tests/ts/rename/subdir
tests/ts/rename/symlink
tests/ts/schedutils/chrt
tests/ts/schedutils/chrt-non-root
tests/ts/script/replay
tests/ts/sfdisk/dos
tests/ts/sfdisk/gpt
tests/ts/sfdisk/movedata
tests/ts/sfdisk/resize
tests/ts/sfdisk/script
tests/ts/sfdisk/wipe
tests/ts/swapon/devname
tests/ts/swapon/label
tests/ts/swapon/uuid
tests/ts/utmp/utmpdump-circle
tests/ts/utmp/utmpdump-tobin
tests/ts/utmp/utmpdump-tobin-ipv6
tests/ts/uuid/uuid_parser
tests/ts/uuid/uuidd
tests/ts/uuid/uuidgen
tests/ts/uuid/uuidparse