coreutils/tests/by-util
Jeffrey Finkelstein 3a5b31a30f dd: correct rendering of SI and IEC byte counts
Adjust the rendering of the concise byte counts in both SI and IEC
units to better match the behavior of GNU dd.

Before this commit,

    $ head -c 1024 /dev/zero | dd > /dev/null
    2+0 records in
    2+0 records out
    1024 bytes (1 KB, 1024 B) copied, 0.0 s, 1.0 MB/s

After this commit,

    $ head -c 1024 /dev/zero | dd > /dev/null
    2+0 records in
    2+0 records out
    1024 bytes (1.0 kB, 1.0 KiB) copied, 0.0 s, 1.0 MB/s

For comparison, GNU dd produces the following:

    $ head -c 1024 /dev/zero | dd > /dev/null
    2+0 records in
    2+0 records out
    1024 bytes (1.0 kB, 1.0 KiB) copied, 0.000332864 s, 3.1 MB/s
2022-12-03 10:14:00 -05:00
..
test_arch.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_base32.rs base{32, 64, enc}: update to clap 4 2022-10-13 16:22:24 +02:00
test_base64.rs base{32, 64, enc}: update to clap 4 2022-10-13 16:22:24 +02:00
test_basename.rs basename: update to clap 4 2022-10-13 16:22:45 +02:00
test_basenc.rs basenc: add utility 2021-08-06 00:07:19 +02:00
test_cat.rs tests: Adjust some tests to use improved UChild. test_tac: Ignore pipe tests on windows. 2022-12-02 13:13:10 +01:00
test_chcon.rs all: use array intoiterator 2022-04-05 10:39:31 +02:00
test_chgrp.rs chgrp: update to clap 4 2022-10-13 17:50:23 +02:00
test_chmod.rs Fix some clippy warnings 2022-10-13 09:07:22 +02:00
test_chown.rs Merge pull request #4081 from sylvestre/chown-sep 2022-10-26 11:24:35 +02:00
test_chroot.rs chroot: improve support of --skip-chdir 2022-10-10 14:07:45 +02:00
test_cksum.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_comm.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_cp.rs Merge pull request #4136 from Joining7943/tail-test-runner 2022-12-03 10:18:25 +01:00
test_csplit.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_cut.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_date.rs date: add a test for the issue 3780 to make sure we don't regress 2022-11-18 21:32:59 +01:00
test_dd.rs dd: correct rendering of SI and IEC byte counts 2022-12-03 10:14:00 -05:00
test_df.rs df: remove trailing spaces in rightmost column (#3882) 2022-09-22 08:37:20 +02:00
test_dir.rs unix_sockets is deprecated, use std::os::unix::net instead 2022-08-20 17:02:29 +03:00
test_dircolors.rs dircolors: align TERM matching behavior with that of GNU dircolors 2022-10-09 18:47:20 -07:00
test_dirname.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_du.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_echo.rs Allow echo with escapes to work with \0 2022-01-30 17:24:29 -05:00
test_env.rs Fix "needless borrow" clippy warning in env test 2022-11-04 11:10:35 +01:00
test_expand.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_expr.rs expr: Use chars().count() as we can have some multibytes chars 2022-02-13 14:19:25 +01:00
test_factor.rs tests: Use UChild in tests. Rename run_no_wait_child to run_no_wait and return UChild 2022-12-02 08:06:45 +01:00
test_false.rs false,true: Implement custom help, version 2022-02-01 14:29:26 +01:00
test_fmt.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_fold.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_groups.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_hashsum.rs hashsum: enable testing --no-names 2022-10-26 11:10:26 +02:00
test_head.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_hostid.rs Refactored tests for more utilities 2021-04-18 02:32:43 +03:00
test_hostname.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_id.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_install.rs Fix some clippy warnings 2022-10-13 09:07:22 +02:00
test_join.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_kill.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_link.rs link: update to clap 4 2022-10-13 17:50:33 +02:00
test_ln.rs ln: use uucore::prompt_yes over custom function 2022-11-17 15:10:26 +01:00
test_logname.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_ls.rs chore: standardize creation of empty strings 2022-12-01 13:49:23 +01:00
test_mkdir.rs tests: fixed some tests on Windows 2022-10-18 10:00:28 +03:00
test_mkfifo.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_mknod.rs tests: change error messages for wrong arguments 2022-10-16 19:28:04 +03:00
test_mktemp.rs mktemp: allow default missing value 2022-11-03 08:27:08 +01:00
test_more.rs tests: use CmdResult::usage_error 2021-11-09 17:37:05 -03:00
test_mv.rs mv: use uucore::prompt_yes over custom function 2022-11-17 15:11:19 +01:00
test_nice.rs nice: set exit code for clap errors to 125 2022-05-04 21:32:14 +02:00
test_nl.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_nohup.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_nproc.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_numfmt.rs numfmt: allow ' ' as field separator 2022-11-01 10:04:46 +01:00
test_od.rs Fix some clippy warnings 2022-10-13 09:07:22 +02:00
test_paste.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_pathchk.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_pinky.rs chore: standardize creation of empty strings 2022-12-01 13:49:23 +01:00
test_pr.rs pr: use clap to handle help & version 2022-09-12 15:28:08 +02:00
test_printenv.rs Weird env variable names should trigger an error. 2022-11-06 17:35:00 +01:00
test_printf.rs printf: Default left-justify integer conversion to 1 width 2022-05-01 20:00:09 +02:00
test_ptx.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_pwd.rs pwd: support the env variable 'POSIXLY_CORRECT' 2022-10-26 11:40:46 +02:00
test_readlink.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_realpath.rs realpath: require arguments again 2022-10-13 20:06:27 +02:00
test_relpath.rs fix Rust 1.59 clippy lints 2022-02-25 09:39:48 +01:00
test_rm.rs tests/util: Improve UChild. Cleanup redundant functions in util.rs. 2022-12-02 08:06:48 +01:00
test_rmdir.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_runcon.rs all: use array intoiterator 2022-04-05 10:39:31 +02:00
test_seq.rs tests: Use UChild in tests. Rename run_no_wait_child to run_no_wait and return UChild 2022-12-02 08:06:45 +01:00
test_shred.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_shuf.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_sleep.rs uucore: error on negative interval in parse_time 2022-03-21 21:11:31 -04:00
test_sort.rs tests: Adjust some tests to use improved UChild. test_tac: Ignore pipe tests on windows. 2022-12-02 13:13:10 +01:00
test_split.rs chore: run cargo +nightly clippy --fix 2022-11-16 11:09:44 +02:00
test_stat.rs stat: move unit tests to stat.rs instead of test_stat.rs 2022-11-16 21:17:39 +01:00
test_stdbuf.rs stdbuf: update to clap 4 2022-10-13 17:50:40 +02:00
test_stty.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_sum.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_sync.rs fix: address test failures 2022-11-04 13:35:54 +03:00
test_tac.rs tests: Adjust some tests to use improved UChild. test_tac: Ignore pipe tests on windows. 2022-12-02 13:13:10 +01:00
test_tail.rs tests: Adjust some tests to use improved UChild. test_tac: Ignore pipe tests on windows. 2022-12-02 13:13:10 +01:00
test_tee.rs tests: Adjust some tests to use improved UChild. test_tac: Ignore pipe tests on windows. 2022-12-02 13:13:10 +01:00
test_test.rs tests: fixed some tests on Windows 2022-10-18 10:00:28 +03:00
test_timeout.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_touch.rs touch: add support for some relative times 2022-11-29 22:53:13 +01:00
test_tr.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_true.rs false,true: Implement custom help, version 2022-02-01 14:29:26 +01:00
test_truncate.rs truncate: update to clap 4 2022-10-13 17:50:43 +02:00
test_tsort.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_tty.rs tests: Use UChild in tests. Rename run_no_wait_child to run_no_wait and return UChild 2022-12-02 08:06:45 +01:00
test_uname.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_unexpand.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_uniq.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_unlink.rs unlink: update to clap 4 2022-10-13 17:50:43 +02:00
test_uptime.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_users.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_vdir.rs unix_sockets is deprecated, use std::os::unix::net instead 2022-08-20 17:02:29 +03:00
test_wc.rs Fix some clippy warnings 2022-10-13 09:07:22 +02:00
test_who.rs who: update to clap 4 2022-10-13 17:50:43 +02:00
test_whoami.rs all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
test_yes.rs tests/util: Improve UChild. Cleanup redundant functions in util.rs. 2022-12-02 08:06:48 +01:00