coreutils/tests/fixtures
Jeffrey Finkelstein 6718d97f97 split: add support for -e argument
Add the `-e` flag, which indicates whether to elide (that is, remove)
empty files that would have been created by the `-n` option.

The `-n` command-line argument gives a specific number of chunks into
which the input files will be split. If the number of chunks is
greater than the number of bytes, then empty files will be created for
the excess chunks. But if `-e` is given, then empty files will not be
created.

For example, contrast

    $ printf 'a\n' > f && split -e -n 3 f && cat xaa xab xac
    a
    cat: xac: No such file or directory

with

    $ printf 'a\n' > f && split -n 3 f && cat xaa xab xac
    a
2022-02-17 19:03:51 -05:00
..
base32 base32: Fixed style violations. Added tests 2021-04-26 08:00:55 -07:00
base64 base64: Moved argument parsing to clap. 2021-05-01 11:36:46 -07:00
cat tests ~ refactor/polish spelling (comments, names, and exceptions) 2021-05-31 08:23:57 -05:00
chgrp chgrp: replace getopts with clap (#2118) 2021-06-10 16:38:44 -04:00
cksum cksum: add tests and fixtures (#1923) 2021-04-05 22:21:21 +02:00
comm comm: additional tests and status/stderr checking for existing tests 2016-02-22 09:59:06 -05:00
cp cp: test that file descriptors are closed 2021-06-02 19:21:16 +02:00
csplit csplit: refresh of the previous PR 2020-12-28 17:21:29 +01:00
cut tests/cut: positive testcases for feature complete 2016-08-06 17:11:54 -04:00
dd dd: move unit tests into dd.rs and test_dd.rs 2022-02-15 21:50:48 -05:00
dircolors dircolors: tests added 2016-05-11 00:43:51 +08:00
du du: add --dereference 2021-06-17 14:06:41 +07:00
env env: add support for new '--file' option (includes testing) 2019-04-29 09:50:22 -05:00
expand test(expand): Add some tests for expand (#1505) 2020-05-15 18:09:10 -05:00
fmt test(fmt): Add some tests for fmt 2020-05-06 00:38:22 +02:00
fold fold: move to clap, add tests (#2015) 2021-04-06 22:51:27 +02:00
hashsum tests/hashsum: Fix missing space in checkfile 2022-02-10 13:55:53 +05:30
head head: print headings when reading multiple files 2021-05-16 12:03:10 -04:00
install install: implement stripping symbol table (#2047) 2021-04-10 11:53:29 +02:00
join Merge pull request #2902 from jtracey/join-non-unicode-sep 2022-01-31 21:54:56 +01:00
mv rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
nl rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
numfmt numfmt: implement --field 2021-03-08 10:53:34 -05:00
od od: implement --traditional 2016-09-02 21:24:29 +02:00
paste rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
pr pr: Fixes after rebasing 2021-03-26 17:57:19 +03:00
ptx tests ~ refactor/polish spelling (comments, names, and exceptions) 2021-05-31 08:23:57 -05:00
shuf Add shuf tests (#1958) 2021-03-28 17:52:01 +02:00
sort sort: handle empty merge inputs 2021-07-31 21:02:20 +02:00
split split: add support for -e argument 2022-02-17 19:03:51 -05:00
sum rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
tac tac: correct behavior of -b option (#2523) 2021-08-22 21:01:17 +02:00
tail tests ~ refactor/polish spelling (comments, names, and exceptions) 2021-05-31 08:23:57 -05:00
test test: add tests for basic tests & edge cases 2021-05-01 22:40:47 -04:00
tsort rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
unexpand feat(unexpand): move from getopts to clap (#1883) 2021-03-23 09:42:05 +01:00
uniq uniq: implement group option 2021-04-04 15:22:17 +05:30
wc wc: implement files0-from option 2022-02-04 10:12:08 -03:00
.gitattributes .gitattributes: treat tests/fixtures/** as binary data to prevent CRLF convertion by git under Windows 2016-02-14 17:09:47 +01:00