Sylvestre Ledru
279656426b
Merge pull request #2071 from rethab/fix-clippy
...
Fix clippy warnings
2021-04-17 10:05:28 +02:00
Sylvestre Ledru
7ae5f1d751
Merge pull request #2054 from rethab/improve-cksum-test
...
allow ignoring stdin write errors in tests & fix flaky test
2021-04-17 00:49:17 +02:00
Sylvestre Ledru
ff620b5fa4
Merge pull request #2034 from Gilnaa/fix_tests
...
Remove some usage of CmdResult fields in tests
2021-04-17 00:07:16 +02:00
Terts Diepraam
685493f72b
ls: make path platform independent
2021-04-16 23:48:35 +02:00
Sylvestre Ledru
5e9cfe46db
Merge pull request #2080 from uutils/sylvestre-patch-3
...
Unblock the CI: disable some tests on Windows
2021-04-16 21:03:12 +02:00
Sylvestre Ledru
58a2821dce
Also disable on test_three_directories_and_file_and_stdin
2021-04-16 19:44:40 +02:00
Sylvestre Ledru
3aff898acd
Disable test_no_options_big_input on Windows
2021-04-16 18:58:46 +02:00
Jan Scheer
c81cf9b626
chown: refactor tests
2021-04-14 17:36:45 +02:00
Terts Diepraam
2c130ae7c0
ls: take -l
into account with dereference-command-line
2021-04-14 14:42:14 +02:00
Terts Diepraam
5c28ac1b0d
ls: dereference command line
2021-04-14 14:12:00 +02:00
Sylvestre Ledru
cee59c0343
Merge pull request #2074 from ycd/update-doc
...
CONTRIBUTING: require safety comments for unsafe code
2021-04-13 23:04:58 +02:00
electricboogie
c49f93c9af
Psuedo working extsort
2021-04-12 18:05:37 -05:00
Yagiz Degirmenci
3aee0dfa88
add dot
2021-04-12 22:52:17 +03:00
Yagiz Degirmenci
fbb2125812
doc: update CONTRIBUTING.md
2021-04-12 22:50:29 +03:00
electricboogie
e6c195a675
ExtSort
2021-04-12 14:24:22 -05:00
Reto Hablützel
a4253d1254
apply more clippy suggestions from nightly
2021-04-12 20:07:10 +02:00
Reto Hablützel
07e9c5896c
ignore strip_suffix until minimum rust version is 1.45
2021-04-12 19:53:47 +02:00
Reto Hablützel
d219b6e705
strip_suffix is not avaialble with rust 1.40
2021-04-12 19:50:23 +02:00
Reto Hablützel
d67560c37a
fix clippy for unix
2021-04-11 16:34:19 +02:00
Reto Hablützel
b465c34eef
fix ls
2021-04-11 16:16:38 +02:00
Reto Hablützel
75a76613e4
fix clippy in cp
2021-04-11 16:09:18 +02:00
Reto Hablützel
97d12d6e3c
fix trivial warnings without features
2021-04-11 16:05:25 +02:00
ReggaeMuffin
5f00a0f907
remove the unused imports
2021-04-11 10:49:52 +01:00
Sylvestre Ledru
c224b955da
Merge pull request #2011 from Gilnaa/master
...
Add some test utils needed for major test refactoring
2021-04-11 09:36:08 +02:00
Gilad Naaman
4695667c7c
Added sanity checks for test utils
2021-04-11 02:28:47 +03:00
Gilad Naaman
cd3dba2481
Added some tests utils for future refactoring
2021-04-11 02:27:16 +03:00
Gilad Naaman
81d42aa2b3
Fix some tests to not use CmdResult fields
2021-04-10 23:30:50 +03:00
electricboogie
c6021e10c2
Fix SemVer non version lines/empty line sorting with a test
2021-04-10 15:27:16 -05:00
Árni Dagur
eb4971e6f4
cat: Unrevert splice patch ( #2020 )
...
* cat: Unrevert splice patch
* cat: Add fifo test
* cat: Add tests for error cases
* cat: Add tests for character devices
* wc: Make sure we handle short splice writes
* cat: Fix tests for 1.40.0 compiler
* cat: Run rustfmt on test_cat.rs
* Run 'cargo +1.40.0 update'
2021-04-10 22:19:53 +02:00
Sylvestre Ledru
bf1944271c
remove .DS_Store
2021-04-10 21:57:03 +02:00
electricboogie
7133273725
Correct arg help value name for --parallel
2021-04-10 14:13:49 -05:00
electricboogie
9bcf752b0c
Confirm human numeric works as expected with whitespace with a test
2021-04-10 14:06:24 -05:00
electricboogie
77411f3fb5
Implement test for months whitespace fix
2021-04-10 13:36:57 -05:00
electricboogie
3c1c76444b
Merge branch 'master' of https://github.com/uutils/coreutils
2021-04-10 13:26:56 -05:00
Michael Debertol
69f4410a8a
sort: dedup using compare_by ( #2064 )
...
compare_by is the function used for sorting, we should use it for dedup
as well.
2021-04-10 19:49:10 +02:00
electricboogie
2d9f15d12c
Fix month parse for months with leading whitespace
2021-04-10 12:02:02 -05:00
electricboogie
843be9e149
Rebase
2021-04-10 09:06:14 -05:00
Michael Debertol
49c9d8c901
sort: implement -k and -t support ( #1996 )
...
* sort: implement basic -k and -t support
This allows to specify keys after the -k flag and a custom field
separator using -t.
Support for options for specific keys is still missing, and the -b flag
is not passed down correctly.
* sort: implement support for key options
* remove unstable feature use
* don't pipe in input when we expect a failure
* only tokenize when needed, remove a clone()
* improve comments
* fix clippy lints
* re-add test
* buffer writes to stdout
* fix ignore_non_printing
and make the test fail in case it is broken :)
* move attribute to the right position
* add more tests
* add my name to the copyright section
* disallow dead code
* move a comment
* re-add a loc
* use smallvec for a perf improvement in the common case
* add BENCHMARKING.md
* add ignore_case to benchmarks
2021-04-10 14:54:58 +02:00
Sylvestre Ledru
e1221ef3f8
Merge pull request #2036 from joppich/issue1930
...
stdbuf: move from getopts to clap
2021-04-10 11:58:01 +02:00
electricboogie
e5113ad00e
Sort: Various fixes and performance improvements ( #2057 )
...
* Various fixes and performance improvements
* fix a typo
Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
2021-04-10 11:56:20 +02:00
Sivachandran
ee070028e4
install: implement stripping symbol table ( #2047 )
2021-04-10 11:53:29 +02:00
Nicolas Thery
698924a20a
unlink: move from getopts to clap ( #2052 ) ( #2058 )
2021-04-10 11:50:21 +02:00
Aleksandar Janicijevic
18191f9212
shred: Implemented --force option ( #2012 )
2021-04-10 10:41:59 +02:00
joppich
c54b5f2d82
stdbuf: move from getopts to clap
2021-04-10 00:39:12 +02:00
Sylvestre Ledru
a9209049bf
fix a typo
...
Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
2021-04-09 22:18:52 +02:00
Sylvestre Ledru
844e318a67
Merge branch 'master' into pr
2021-04-09 22:02:25 +02:00
electricboogie
1253323027
Various fixes and performance improvements
2021-04-09 14:28:46 -05:00
Reto Hablützel
d51ca40986
allow ignoring stdin write errors in tests
...
* if we want to test an irregular scenario, ignoring errors caused by
writing to stdin of the command can be uselful.
* for example, when writing some text to stdin of cksum in a scenario
where it doesn't consume this input, the child process might have
exited before the text was written. therefore, this test sometimes
fails with a 'Broken pipe'.
2021-04-09 11:16:36 +02:00
Sylvestre Ledru
9ae4928b7b
Ignore a test ( #2053 )
...
* Disable chksum: test_arg_overrides_stdin
fails often with:
---- test_cksum::test_arg_overrides_stdin stdout ----
current_directory_resolved:
touch: /tmp/.tmpv9hydc/a
run: /target/x86_64-unknown-linux-gnu/debug/coreutils cksum a
thread 'test_cksum::test_arg_overrides_stdin' panicked at 'Broken pipe (os error 32)', tests/common/util.rs:742:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
* rustfmt the recent change
2021-04-09 10:14:41 +02:00
electricboogie
8474249e5f
Sort: Implement stable sort, ignore non-printing, month sort dedup, auto parallel sort through rayon, zero terminated sort, check silent ( #2008 )
2021-04-08 22:07:09 +02:00