Commit graph

3306 commits

Author SHA1 Message Date
elgris
71ba8b3fd6 sort: add "dictionary-order" flag.
The flag makes 'sort' command ignore non-dictionary symbols
(non-alphanumeric and non-spaces). The only difference with GNU sort is
that it takes ALL alphanumeric symbols, not only ASCII ones.
2020-05-07 23:08:24 +02:00
Sylvestre Ledru
f44e5465b8 cleanup(yes, whoami): remove some old workaround to force cargo rebuilds 2020-05-06 23:39:49 +02:00
Sylvestre Ledru
16bf4b1893 test(arch): Add some tests 2020-05-06 00:39:13 +02:00
Sylvestre Ledru
9b0129716f test(fmt): Add some tests for fmt
Even if it is a bit broken for now
2020-05-06 00:38:22 +02:00
Sylvestre Ledru
a93d007cde test(uname): Add a test for the -o/--operating-system flag 2020-05-05 13:37:33 -05:00
Sylvestre Ledru
47fefae5f6 Merge branch 'E5ten-patch-4' 2020-05-05 13:23:45 +02:00
E5ten
2a61fc7f72 feature(uname): Add -o/--operating-system flag
The code for the flag already existed it had just not been added to the argument parsing. Replace "print the operating system name." in -s help text with "print the kernel name." so the -o option can use the previous -s help text.
2020-05-05 13:23:42 +02:00
E5ten
9fe49bf1bc feature(uname): Add -o/--operating-system flag
The code for the flag already existed it had just not been added to the argument parsing. Replace "print the operating system name." in -s help text with "print the kernel name." so the -o option can use the previous -s help text.
2020-05-05 13:23:09 +02:00
Roy Ivy III
4b7e122adc
Merge pull request #1497 from sylvestre/test_users
test(users): add tests
2020-05-04 22:21:35 -05:00
Sylvestre Ledru
ce047e8330 test(users): Introduce two tests 2020-05-04 15:12:38 -05:00
Roy Ivy III
94aa201ee5
Merge pull request #1499 from rivy/fix.style-cat
refact/cat ~ fix style issues
2020-05-04 13:36:07 -05:00
Roy Ivy III
ab0ef90b4a refact/cat ~ fix style issues 2020-05-04 13:04:02 -05:00
Sylvestre Ledru
b1d06a9b58 Merge branch 'phungleson-fix-cat' 2020-05-04 13:15:54 +02:00
Sylvestre Ledru
6294736d79 Merge branch 'fix-cat' of https://github.com/phungleson/coreutils into phungleson-fix-cat 2020-05-04 13:09:21 +02:00
Sylvestre Ledru
7e3f32d4db style(df): rustfmt src/uu/df/src/df.rs 2020-05-04 10:56:16 +02:00
Sylvestre Ledru
06fe387c76
Merge pull request #1495 from orottier/wc
wc: Do not decode UTF8 when only counting bytes/newlines
2020-05-04 10:54:18 +02:00
Otto Rottier
dab1b9ba1a
rustfmt src/uu/wc/src/wc.rs
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2020-05-04 07:45:30 +02:00
Roy Ivy III
30c14f1025
Merge pull request #1492 from sylvestre/test_printenv
test(printenv): add some tests
2020-05-03 15:15:43 -05:00
Roy Ivy III
f12c27a57d
Merge pull request #1487 from sylvestre/df-human
refactor and fix some `df` build and cosmetic issues
2020-05-03 15:15:14 -05:00
Roy Ivy III
23b49101c0 fix/df ~ fix build script for sub-crate builds 2020-05-03 14:54:57 -05:00
Roy Ivy III
81d85f398b fix/df ~ missing windows imports 2020-05-03 14:54:57 -05:00
Roy Ivy III
091a356807 fix/df ~ correct number suffix display by using number_prefix PrefixNames::symbol() 2020-05-03 14:53:13 -05:00
Otto Rottier
e3bd6b6848 wc: Do not decode UTF8 when only counting bytes/newlines 2020-05-03 20:39:09 +02:00
Sylvestre Ledru
fc83024ebe refactor(df): use number_prefix like 'ls' instead of doing the display by hand 2020-05-03 13:29:55 -05:00
Sylvestre Ledru
bee8ab744e test(printenv): add some tests 2020-05-03 13:24:47 -05:00
Roy Ivy III
78dc71630c
Merge pull request #1490 from sylvestre/uname
Add `uname` test + doc update regarding testing
2020-05-03 13:00:21 -05:00
Roy Ivy III
eb1ba77de1
Merge pull request #1491 from sylvestre/date2
`date` refresh + added tests
2020-05-03 12:59:15 -05:00
Sylvestre Ledru
90de33d5d7 maint/df: relax the dependencies 2020-05-03 12:27:55 -05:00
Sylvestre Ledru
1f1edc5a33 test(date): add tests 2020-05-03 12:26:17 -05:00
Sylvestre Ledru
850bd9c32d fix(date): fix the date
Date didn't work out of the box.
Refactor it a bit to match other programs
2020-05-03 12:26:17 -05:00
Sylvestre Ledru
dfb36897cc docs(cargo): explain that platform specific tests aren't executed by default 2020-05-03 12:18:28 -05:00
Sylvestre Ledru
4c1774e918 test(uname): Add uname tests 2020-05-03 12:18:28 -05:00
Roy Ivy III
ecfb42ba6c Merge pull request #1488 from sylvestre/df-path
feat(df): Add the support of path for df (eg, `df /boot`)
2020-05-03 12:16:39 -05:00
Roy Ivy III
2d5d0680d8 fix(df) ~ fix lint complaint (unused import) 2020-05-03 12:00:42 -05:00
Sylvestre Ledru
8d1f0edfc4 refact(df): follow the same directory pattern than the other software 2020-05-03 11:51:33 -05:00
Sylvestre Ledru
c85756e509 fix(df): Linux: Fix the mount path and type 2020-05-03 11:51:33 -05:00
Sylvestre Ledru
8f6770401d feat(df): Add the support of path for df. ex: df /boot 2020-05-03 11:51:33 -05:00
Sylvestre Ledru
c5a26810cb
Merge pull request #1494 from rivy/add.make-tasks
Add/polish `cargo make` tasks
2020-05-03 18:14:27 +02:00
Roy Ivy III
78d4bb42e9 maint/build ~ add 'release' and 'debug' mode notations to tasks and help 2020-05-03 10:49:39 -05:00
Roy Ivy III
d752d9880b maint/build ~ improve format and readability of (cargo make) 'help' target 2020-05-03 09:23:31 -05:00
Roy Ivy III
d7b6626f70 maint/build ~ polish and add commentary for initialization workaround 2020-05-03 09:23:31 -05:00
Roy Ivy III
39cea3a159 maint/build ~ add 'action-spellcheck-codespell' cargo-make target; prelim to a 'spellcheck' target 2020-05-03 09:23:31 -05:00
Roy Ivy III
f16e2261fc maint/build ~ improve cargo make format to include test formatting 2020-05-03 09:23:31 -05:00
Roy Ivy III
969964aade maint/build ~ add cargo make install/uninstall targets 2020-05-03 09:23:31 -05:00
Roy Ivy III
d5368d9491 maint/build ~ add 'uutil' task as alias to 'util' for least surprise 2020-05-03 09:23:31 -05:00
Sylvestre Ledru
cb61eae709
Merge pull request #1493 from rivy/fix.ci-coverage
Fix CI coverage
2020-05-03 10:56:40 +02:00
Roy Ivy III
18e8bb822b maint/CICD ~ configure CodeCov to report but "allow-failure" 2020-05-02 23:26:37 -05:00
Roy Ivy III
7a64ad1ebc maint/CICD ~ add commentary for 'Style' warning output => annotation conversions 2020-05-02 23:12:50 -05:00
Roy Ivy III
a57214fa10 maint/CICD ~ change 'Style' job to a more robust, "allow-failure"-type, state
## [why]

Compiler and clippy warnings will change over time. To avoid build failures due to some
updated allow/warn categories for more future rust versions, the tests using the
toolchain utilities are converted to a form which will always "pass" but will push any
errors/warnings to the GHA UI as annotations.

Additional build-breaking tests utilizing more stable tools (or local scripts) can be
added at a later date if/when desired.

This should prevent CI failures for already known-working builds.
2020-05-02 17:02:25 -05:00
Roy Ivy III
312d9b9543 maint/CICD ~ fix coverage build failures by pinning to known-working nightly toolchain
## [why]

Code coverage must currently use some unstable features in nightly rust builds. The
nightly builds are, by definition, unstable and subject to frequent breaking changes.
To prevent CI build breakage, the toolchain is pinned to a specific known working set.

Note: (maint!) this will require periodic review until code coverage is more fully
implemented/integrated into Rust and moved into the stable channel.

- refs: <https://github.com/mozilla/grcov/issues/427>, <https://github.com/newsboat/newsboat/issues/916>
2020-05-02 16:53:08 -05:00