coreutils/tests/by-util
Juliana Rodrigueiro 97da14fcb2 install: Fix behaviour of the -d flag
The '-d' flag should create all ancestors (or components) of a
directory regardless of the presence of the "-D" flag.

From the man page:
       -d, --directory
              treat all arguments as directory names; create all components of the specified directories

With GNU:
    $ install -v -d dir1/di2
    install: creating directory 'dir1'
    install: creating directory 'dir1/di2'
With this version:
    $ ./target/release/install -v -d dir3/di4
    install: dir3/di4: No such file or directory (os error 2)
    install: dir3/di4: chmod failed with error No such file or directory (os error 2)
    install: created directory 'dir3/di4'

Also, one of the unit tests misinterprets what a "component" is,
and hence was fixed.
2021-04-02 20:04:25 +01:00
..
test_arch.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_base32.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_base64.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_basename.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_cat.rs Rustfmt new tests 2021-03-18 10:24:30 +01:00
test_chgrp.rs uutils: change every target_os = "macos" to target_vendor = "apple" 2021-03-18 08:42:53 -04:00
test_chmod.rs fixed panic! formatting 2021-03-31 13:30:06 +02:00
test_chown.rs Minor fixes in the tests 2020-12-13 12:11:42 +01:00
test_chroot.rs chroot: move to clap from getopts (#1792) 2021-03-21 16:18:47 +01:00
test_cksum.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_comm.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_cp.rs fixed panic! formatting 2021-03-31 13:30:06 +02:00
test_csplit.rs csplit: refresh of the previous PR 2020-12-28 17:21:29 +01:00
test_cut.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_date.rs date: change tests to expect failure (#1895) 2021-03-24 08:33:11 +01:00
test_df.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_dircolors.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_dirname.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_du.rs Consistency with GNU version of du when doing du -h on an empty file 2021-04-01 19:42:43 -04:00
test_echo.rs echo: allow leading hyphens (#1887) 2021-03-23 09:40:05 +01:00
test_env.rs unbreak build with rustc 1.32: force tempfile 3.1.0 (#1695) 2021-01-19 08:15:53 +01:00
test_expand.rs Expand: add test for multiple files 2021-03-15 21:29:28 +08:00
test_expr.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_factor.rs tests/factor ~ refactor for readability + improve DRY 2020-10-26 15:06:29 -05:00
test_false.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_fmt.rs bug(fmt): just like the GNU version, fails when -W is bigger than 2500 2021-01-25 08:45:33 +01:00
test_fold.rs fold: preserve blank lines 2021-04-02 10:14:11 -04:00
test_groups.rs fix ~ compiler warning (unused import) 2020-06-14 23:38:30 -05:00
test_hashsum.rs hashsum: added blake2 as a hashing algorithm (#1651) 2020-12-08 23:32:02 +01:00
test_head.rs Rewrote head (#1911) 2021-03-29 13:08:48 +02:00
test_hostid.rs test(hostid) add a test for hostid (#1533) 2020-06-08 09:09:44 +02:00
test_hostname.rs uutils: change every target_os = "macos" to target_vendor = "apple" 2021-03-18 08:42:53 -04:00
test_id.rs refactor(id) - move to clap and add more tests (#1628) 2020-11-21 09:52:50 +01:00
test_install.rs install: Fix behaviour of the -d flag 2021-04-02 20:04:25 +01:00
test_join.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_kill.rs tests ~ add missing test_UTIL module files (with 'ToDO' comments) 2020-06-02 11:25:09 -05:00
test_link.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_ln.rs feature(ln): Implement -n 2021-01-03 18:55:53 +01:00
test_logname.rs tests ~ suppress failing WSL logname test (add investigate ToDO) 2020-06-14 23:38:30 -05:00
test_ls.rs ls: quoting style (#1989) 2021-04-01 22:50:13 +02:00
test_mkdir.rs fix(mkdir) - Add --parent as alias of --parents 2020-12-18 14:41:59 +01:00
test_mkfifo.rs mkfifo: general refactor, move to clap, add tests (#1945) 2021-03-27 20:00:59 +01:00
test_mknod.rs tests ~ add missing test_UTIL module files (with 'ToDO' comments) 2020-06-02 11:25:09 -05:00
test_mktemp.rs fix(mktemp) - Make mktemp --tempdir foo.XXXXXX works (#1716) 2021-02-11 00:03:23 +01:00
test_more.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_mv.rs refactor(mv): move to clap (#1652) 2020-12-10 22:28:17 +01:00
test_nice.rs Rustfmt new tests 2021-03-18 10:24:30 +01:00
test_nl.rs Rustfmt new tests 2021-03-18 10:24:30 +01:00
test_nohup.rs nohup: move from getopts to clap (#1871) 2021-03-22 20:09:00 +01:00
test_nproc.rs style(nproc): reformat with rustfmt 2020-06-09 13:38:29 +02:00
test_numfmt.rs numfmt: implement --delimiter 2021-03-15 11:55:56 -04:00
test_od.rs od: refactor tests for #1982 2021-04-01 02:16:15 +02:00
test_paste.rs paste: cleanup multi-stdin support (#1803) 2021-03-12 13:26:09 +01:00
test_pathchk.rs Add pre-commit hook + run fmt (#1959) 2021-03-30 21:24:01 +02:00
test_pinky.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_printenv.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_printf.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_ptx.rs ptx: ignore empty regex (#1808) 2021-03-12 21:52:37 +01:00
test_pwd.rs refactor(pwd): move to clap + add a test 2020-11-03 23:12:16 +01:00
test_readlink.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_realpath.rs Remove some old code 2021-01-22 09:40:38 +01:00
test_relpath.rs relpath: move from getops to clap (#1939) (#1990) 2021-04-02 09:55:57 +02:00
test_rm.rs Add pre-commit hook + run fmt (#1959) 2021-03-30 21:24:01 +02:00
test_rmdir.rs Rustfmt new tests 2021-03-18 10:24:30 +01:00
test_seq.rs rustfmt some tests 2021-03-13 23:30:47 +01:00
test_shred.rs tests ~ add missing test_UTIL module files (with 'ToDO' comments) 2020-06-02 11:25:09 -05:00
test_shuf.rs fixed panic! formatting 2021-03-31 13:30:06 +02:00
test_sleep.rs sleep: Add more test cases 2021-03-15 14:36:38 +01:00
test_sort.rs sort: Add a GNU-style Random Sorter (#1922) 2021-03-29 13:05:52 +02:00
test_split.rs Refactor(split) - migrate from getopts to clap (#1712) 2021-02-11 20:45:23 +01:00
test_stat.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_stdbuf.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_sum.rs sum: fix crash on invalid inputs, move to clap, add tests (#1952) 2021-03-29 13:03:56 +02:00
test_sync.rs unbreak build with rustc 1.32: force tempfile 3.1.0 (#1695) 2021-01-19 08:15:53 +01:00
test_tac.rs tac: exit with proper code, move from getopts to clap, add test for invalid inputs (#1957) 2021-03-31 21:21:10 +02:00
test_tail.rs fix(tail): add support for negative indexing (#1865) 2021-03-22 10:01:54 +01:00
test_tee.rs tee: should match GNU's output if used with /dev/full (#1944) 2021-03-27 20:02:49 +01:00
test_test.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_timeout.rs rustfmt some tests 2021-03-13 23:30:47 +01:00
test_touch.rs touch: use an ArgGroup for sources and turn macros into functions (#1813) 2021-03-13 17:20:39 +01:00
test_tr.rs tr: process octal escape sequences 2021-03-17 08:04:45 -04:00
test_true.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_truncate.rs tests(truncate): Add more tests 2020-10-23 00:36:09 +02:00
test_tsort.rs tsort: move from getopts to clap (#1867) 2021-03-22 18:16:28 +01:00
test_tty.rs tty: Move from getopts to clap (#1956) 2021-03-29 13:00:47 +02:00
test_uname.rs feature(uname): Implement -p & -i (#1649) 2020-12-11 22:46:36 +01:00
test_unexpand.rs feat(unexpand): move from getopts to clap (#1883) 2021-03-23 09:42:05 +01:00
test_uniq.rs uniq: Fix panic on invalid utf-8 input 2021-03-15 18:48:54 +05:30
test_unlink.rs Rustfmt new tests 2021-03-18 10:24:30 +01:00
test_uptime.rs refactor(uptime): some minor improvements 2020-11-03 23:10:32 +01:00
test_users.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_wc.rs Expand CmdResult's API (#1977) 2021-03-31 02:25:23 -07:00
test_who.rs tests ~ reorganize tests 2020-06-01 18:30:04 -05:00
test_whoami.rs tests/refactor ~ use is_ci() for CI host platform testing 2020-06-14 12:20:31 -05:00
test_yes.rs tests ~ add missing test_UTIL module files (with 'ToDO' comments) 2020-06-02 11:25:09 -05:00