Commit graph

7352 commits

Author SHA1 Message Date
Sylvestre Ledru f633d52cb1 GNU: Document how to fix GNU tests 2022-04-03 00:15:22 +02:00
Sylvestre Ledru 46ceeed54c GNU: add a script to list the failing tests
and sort them by size: (the smaller, the easier to fix in general)
2022-04-03 00:15:18 +02:00
Sylvestre Ledru 7debdbbbaa
Merge pull request #3350 from tertsdiepraam/msrv-1.56
MSRV 1.56
2022-04-02 21:46:41 +02:00
Terts Diepraam 0fc667730d join: fix workaround for IntErrorKind
In Rust versions before 1.55, there was no enum for parse errors. With the bump of the MSRV to 1.56 we can simplify this.
2022-04-02 15:18:34 +02:00
Terts Diepraam 4701ea0c95 uucore: use split_once in canon_host 2022-04-02 15:18:34 +02:00
Terts Diepraam 3629421e17 Bump MSRV to 1.56 2022-04-02 15:18:34 +02:00
Sylvestre Ledru 33e3e0d741
Document how to install it easily 2022-04-02 14:21:16 +02:00
Terts Diepraam db22b15faf
Merge pull request #3352 from tertsdiepraam/version-0.0.13
Version 0.0.13
2022-04-02 14:10:43 +02:00
Terts Diepraam b7809bd889 version 0.0.13 2022-04-02 11:04:27 +02:00
Sylvestre Ledru ef8921044b
Merge pull request #3347 from cakebaker/fix_total_use_percentage
df: fix calculation of Use% in "total" row
2022-04-02 09:53:08 +02:00
Terts Diepraam f00ec12e4f
Merge pull request #3345 from DevSabb/presume-input-pipe
head, tail: include presume-input-pipe parameter
2022-04-01 21:43:47 +02:00
Terts Diepraam 97be8403d3
Merge pull request #3348 from uutils/sylvestre-patch-1
GNU testsuite: also show the number of SKIP tests
2022-04-01 16:53:54 +02:00
Terts Diepraam 546dcf749f
Merge pull request #3346 from sylvestre/ln
ln: pass tests/ln/backup-1.sh  & improvement in the error messages
2022-04-01 12:37:25 +02:00
DevSabb 1eee2194a3 head, tail: include presume-input-pipe parameter 2022-04-01 11:55:33 +02:00
Sylvestre Ledru 87c224e978
GNU testsuite: also show the number of SKIP tests 2022-04-01 10:00:44 +02:00
Sylvestre Ledru b3d87b088d ln: adjust the error messages 2022-04-01 09:25:35 +02:00
Daniel Hofstetter bf69c63e09 df: Fix calculation of Use% in "total" row
Change formula from: "Used/Size * 100" to "Used/(Used + Avail) * 100".
This formula also works if "Used" and "Avail" do not add up to "Size",
which is the case if there are reserved disk blocks.
2022-04-01 08:25:30 +02:00
Sylvestre Ledru 676283ce93 ln: implement fixes for tests/ln/backup-1.sh
When doing
ln b b~
ln -f --b=simple a b

First, we create a backup of b
Then, we force the override of a => b but we make sure that the backup is
done.

So, we had a bug in the ordering of the actions.
we were first removing b. Therefore, losing the capability to do a backup of this.
2022-03-31 23:39:42 +02:00
Sylvestre Ledru e553241750 ln: rustfmt the recent changes 2022-03-31 23:39:42 +02:00
Sylvestre Ledru 526370f922 ln: use the quote method instead of doing it by hand 2022-03-31 23:39:42 +02:00
Sylvestre Ledru 15ef76fcbf ln: when we get a failed to link, show which files 2022-03-31 23:39:42 +02:00
Roy Ivy III bed7dc5a29 maint/CICD ~ (GnuTests) support local bespoke repo default branch 2022-03-31 23:39:11 +02:00
Roy Ivy III 8518fff0fd maint/CICD ~ (util) improve error reporting clarity 2022-03-31 23:32:51 +02:00
Roy Ivy III a6e3564c5d fix/CICD ~ (GnuTests) be more precise about failing/passing tests 2022-03-31 23:32:28 +02:00
Roy Ivy III cbe6396149 docs ~ (GnuTests) add reference and notes re GNU coreutils testing processes 2022-03-31 23:32:00 +02:00
Roy Ivy III baaa1639e1 fix/CICD ~ (GnuTests) disable factor tests 2022-03-31 23:31:48 +02:00
Roy Ivy III a46521bb8f fix/CICD ~ (GnuTests) polish and revise factor test mutator 2022-03-31 23:31:41 +02:00
Terts Diepraam 5a49813e07
Merge pull request #3341 from uutils/dependabot/cargo/blake2b_simd-1.0.0
build(deps): bump blake2b_simd from 0.5.11 to 1.0.0
2022-03-31 13:05:43 +02:00
Terts Diepraam 7203340917
Merge pull request #3237 from uutils/dependabot/cargo/ioctl-sys-0.8.0
build(deps): bump ioctl-sys from 0.6.0 to 0.8.0
2022-03-31 01:09:22 +02:00
dependabot[bot] 3e7d1a265a
build(deps): bump blake2b_simd from 0.5.11 to 1.0.0
Bumps [blake2b_simd](https://github.com/oconnor663/blake2_simd) from 0.5.11 to 1.0.0.
- [Release notes](https://github.com/oconnor663/blake2_simd/releases)
- [Commits](https://github.com/oconnor663/blake2_simd/compare/0.5.11...1.0.0)

---
updated-dependencies:
- dependency-name: blake2b_simd
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-30 22:40:52 +00:00
Terts Diepraam 4f3ae094cf
Merge pull request #3235 from uutils/dependabot/cargo/clap_complete-3.1.1
build(deps): bump clap_complete from 3.0.4 to 3.1.1
2022-03-31 00:39:09 +02:00
Terts Diepraam 65c3ab6afd
Merge pull request #3334 from sylvestre/gnu-selinux
when building for the GNU testsuite, force the build of selinux binaries
2022-03-31 00:11:17 +02:00
Terts Diepraam 979035f71c
Merge pull request #3340 from sylvestre/ln
ln: make the tests/ln/hard-backup.sh test work
2022-03-31 00:05:50 +02:00
Sylvestre Ledru 050b5b0c9b ln: make the tests/ln/hard-backup.sh test work
We haven't a great error message with hard link on the same file

+ Update the GNU error message to match ours
2022-03-30 20:00:11 +02:00
Sylvestre Ledru de71d01959
Merge pull request #3338 from cakebaker/rename_human_readable_constants
df: rename two constants
2022-03-30 18:56:49 +02:00
Daniel Hofstetter b9ac38084c df: rename two constants
OPT_HUMAN_READABLE -> OPT_HUMAN_READABLE_BINARY
OPT_HUMAN_READABLE_2 -> OPT_HUMAN_READABLE_DECIMAL
2022-03-30 16:47:08 +02:00
Hanif Ariffin 5c85f5a9d4
Fix incorrect usage of CString because it didn't come from us (#3279) 2022-03-30 09:53:09 +02:00
Sylvestre Ledru 1e6b248a77
Merge pull request #3304 from ackerleytng/main
wc: compute number widths using total file sizes
2022-03-30 09:52:21 +02:00
Sylvestre Ledru 12c38f6eb4 when building for the GNU testsuite, force the build of selinux binaries 2022-03-30 09:31:27 +02:00
Sylvestre Ledru b55af14666
Merge pull request #3335 from sylvestre/usage
gnu/usage_vs_getopts.sh: make the test FAIL instead of ERROR
2022-03-30 09:30:18 +02:00
Sylvestre Ledru a13f0c8fe0 gnu/usage_vs_getopts.sh: default the usage error value to 2 in the GNU test
Closes issue #3331
2022-03-29 22:33:18 +02:00
Sylvestre Ledru 981a77d0cd gnu/usage_vs_getopts.sh: make the test FAIL instead of ERROR 2022-03-29 22:33:18 +02:00
Sylvestre Ledru 5b09008fc0
Merge pull request #3330 from sylvestre/debug-test
makefile: also build basenc
2022-03-29 22:33:05 +02:00
Sylvestre Ledru 05ec34eb94
Merge pull request #3322 from jfinkels/df-multiple-columns-error
df: error on duplicate columns in --output arg
2022-03-29 22:30:14 +02:00
Sylvestre Ledru 52b2d2ac1c
Merge pull request #3309 from cakebaker/fix_use_percentage_calculation
df: fix calculation of Use% column
2022-03-29 15:19:52 +02:00
Sylvestre Ledru 136803ef3d makefile: also build basenc 2022-03-28 23:11:17 +02:00
Sylvestre Ledru 746e35c34e
Merge pull request #3329 from DevSabb/shuf-gnu-test
shuf: accept multiple occurances of head-count argument
2022-03-28 22:09:18 +02:00
Daniel Hofstetter e152ebaead df: fix calculation of Use% column
Change formula from: "Used/Size * 100" to "Used/(Used + Avail) * 100".
This formula also works if "Used" and "Avail" do not add up to "Size",
which is the case if there are reserved disk blocks.
2022-03-28 18:57:12 +02:00
DevSabb 36ec76e1fa
Merge branch 'uutils:main' into shuf-gnu-test 2022-03-28 12:56:38 -04:00
Ackerley Tng e9131e2b7f wc: compute number widths using total file sizes
Previously, individual file sizes were used to compute the number width, which
would cause misalignment when the total has a greater number of digits, and is
different from the behavior of GNU wc

```
$ ./target/debug/wc -w -l -m -c -L deny.toml GNUmakefile
  95  422 3110 3110   85 deny.toml
 349  865 6996 6996  196 GNUmakefile
 444 1287 10106 10106  196 total
$ wc -w -l -m -c -L deny.toml GNUmakefile
   95   422  3110  3110    85 deny.toml
  349   865  6996  6996   196 GNUmakefile
  444  1287 10106 10106   196 total
```
2022-03-28 18:56:34 +02:00