Commit graph

8414 commits

Author SHA1 Message Date
Sylvestre Ledru
cfa7ba2ce2 gnu: merge the root tests results into the main one 2022-09-17 13:19:03 +02:00
Sylvestre Ledru
acef46b629 add the capability to run several tests at once 2022-09-16 10:31:01 +02:00
Sylvestre Ledru
902ff1694d
Merge pull request #3934 from uutils/dependabot/cargo/thiserror-1.0.35
build(deps): bump thiserror from 1.0.34 to 1.0.35
2022-09-14 16:46:10 +02:00
Sylvestre Ledru
a788115a75
Merge pull request #3935 from niyaznigmatullin/cargo_update
`cargo +1.59.0 update`
2022-09-14 16:45:43 +02:00
Niyaz Nigmatullin
b2d5fb4300 cargo +1.59.0 update 2022-09-14 11:56:07 +03:00
dependabot[bot]
18150d45e3
build(deps): bump thiserror from 1.0.34 to 1.0.35
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.34 to 1.0.35.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.34...1.0.35)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 06:44:06 +00:00
Sylvestre Ledru
f83e7d3f1b
Merge pull request #3552 from jfinkels/mktemp-tmpdir-env-var
mktemp: respect TMPDIR environment variable
2022-09-14 08:11:36 +02:00
Jeffrey Finkelstein
61345cbdc9 mktemp: respect TMPDIR environment variable
Change `mktemp` so that it respects the value of the `TMPDIR`
environment variable if no directory is otherwise specified in its
arguments. For example, before this commit

    $ TMPDIR=. mktemp
    /tmp/tmp.WDJ66MaS1T

After this commit,

    $ TMPDIR=. mktemp
    ./tmp.h96VZBhv8P

This matches the behavior of GNU `mktemp`.
2022-09-13 19:38:25 -04:00
Sylvestre Ledru
78a9f6edf8
Merge pull request #3908 from tertsdiepraam/chroot-err-codes
`chroot`: set exit codes to 125, 126 or 127 for errors from chroot itself
2022-09-12 22:43:12 +02:00
Sylvestre Ledru
b44cf9cde9
Merge pull request #3910 from Joining7943/3895-fix-broken-pipe-error-in-utils
fix broken pipe error in tests/common/util
2022-09-12 22:42:36 +02:00
Sylvestre Ledru
1ed281fce9
Merge pull request #3921 from niyaznigmatullin/ls_exit_code_2_some_cases
ls: exit code 2 when `IOError` happened for argument
2022-09-12 22:20:08 +02:00
Sylvestre Ledru
2dd9482664
Merge pull request #3835 from uutils/dependabot/cargo/onig-6.4.0
build(deps): bump onig from 6.3.2 to 6.4.0
2022-09-12 22:18:53 +02:00
Niyaz Nigmatullin
8bd9427d0d tests/ls: added exit code to some test failures 2022-09-12 19:47:16 +03:00
Niyaz Nigmatullin
4e0b238748 ls: add command_line bool to error for exit code 2 2022-09-12 19:47:16 +03:00
Sylvestre Ledru
6c8dab38b8
Merge pull request #3925 from uutils/dependabot/github_actions/vmactions/freebsd-vm-0.2.6
build(deps): bump vmactions/freebsd-vm from 0.2.4 to 0.2.6
2022-09-12 15:27:19 +02:00
Sylvestre Ledru
b8e233e305
Merge pull request #3926 from hbina/hbina-remove-dep-on-cargo-tree
cargo-tree is already part of cargo. Use that instead
2022-09-12 14:33:12 +02:00
Hanif Bin Ariffin
fd9d49d1b2 cargo-tree is already part of cargo. Use that instead
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
2022-09-12 19:22:33 +08:00
dependabot[bot]
b624b054be
build(deps): bump vmactions/freebsd-vm from 0.2.4 to 0.2.6
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm) from 0.2.4 to 0.2.6.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases)
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.2.4...v0.2.6)

---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 07:49:07 +00:00
dependabot[bot]
bf7e5a6ec0 build(deps): bump onig from 6.3.2 to 6.4.0
Bumps [onig](https://github.com/iwillspeak/rust-onig) from 6.3.2 to 6.4.0.
- [Release notes](https://github.com/iwillspeak/rust-onig/releases)
- [Changelog](https://github.com/rust-onig/rust-onig/blob/main/CHANGELOG.md)
- [Commits](https://github.com/iwillspeak/rust-onig/compare/v6.3.2...v6.4.0)

---
updated-dependencies:
- dependency-name: onig
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-11 20:08:28 +02:00
Sylvestre Ledru
4280c2a8a1
Merge pull request #3913 from uutils/dependabot/cargo/notify-5.0.0
build(deps): bump notify from 5.0.0-pre.16 to 5.0.0
2022-09-11 20:06:19 +02:00
Terts Diepraam
e8715cb76a
Merge pull request #3924 from cakebaker/remove_version_of_time_dependency
Remove version from time dependency in Cargo.lock
2022-09-11 17:55:24 +02:00
Daniel Hofstetter
f4a988573d Remove version from time dependency in Cargo.lock 2022-09-11 16:41:26 +02:00
Terts Diepraam
51bd8a2ba8 chroot: set exit codes to 125, 126 or 127 for errors from chroot itself 2022-09-11 12:02:54 +02:00
Sylvestre Ledru
e40f175bb6
Merge pull request #3922 from tertsdiepraam/fix-usage-exit-codes
all: change remaining usage codes of 2 to 1 for GNU compat
2022-09-10 22:15:28 +02:00
Terts Diepraam
9177cb7b24 all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
Terts Diepraam
975a1d170d change remaining usage codes of 2 to 1 for GNU compat 2022-09-10 20:24:24 +02:00
Joining7943
795ab1fb7e tests/common/util: Fix #3895 broken pipe error when using pipep input in UCommand 2022-09-10 11:10:53 +02:00
Joining7943
e860eb899e tests/common/util: Add test which provokes the broken pipe error 2022-09-10 11:10:53 +02:00
dependabot[bot]
d02ee4b1eb
build(deps): bump notify from 5.0.0-pre.16 to 5.0.0
Bumps [notify](https://github.com/notify-rs/notify) from 5.0.0-pre.16 to 5.0.0.
- [Release notes](https://github.com/notify-rs/notify/releases)
- [Changelog](https://github.com/notify-rs/notify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/notify-rs/notify/compare/notify-5.0.0-pre.16...notify-5.0.0)

---
updated-dependencies:
- dependency-name: notify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-10 07:56:32 +00:00
Sylvestre Ledru
70714bc3cd
Merge pull request #3918 from niyaznigmatullin/pr_chrono_to_time
pr: migrate from `chrono` to `time`
2022-09-10 09:54:37 +02:00
Niyaz Nigmatullin
999db68042 pr: migrate from chrono crate to time
It seems that `chrono` is the reason of deadlock or UB in android
CI. Also `chrono` had some security issues and wasn't maintained for
two years until March 2022, so other unstabilities can happen. Plus
`chrono` uses old `time` dependency.
2022-09-09 21:59:08 +03:00
Sylvestre Ledru
0e0d121a1b
Merge pull request #3915 from niyaznigmatullin/fix_android_bad_syscall
test_cp: comment out `bad syscall` failing piece of code for Android
2022-09-09 20:43:19 +02:00
Sylvestre Ledru
dd55379580
Merge pull request #3917 from niyaznigmatullin/procfs_disable_default_features
Disable default features for `procfs`
2022-09-09 20:42:58 +02:00
Niyaz Nigmatullin
ddfb49ce35 deny: remove redundant exceptions 2022-09-09 17:53:58 +03:00
Niyaz Nigmatullin
242ec35cfc deps: disable default features of procfs dependencies
It required using `chrono` dependency with features using
old insecure `time` crate version. Plus this change just
makes less dependencies
2022-09-09 17:49:03 +03:00
Niyaz Nigmatullin
0d6383dd19 test_cp: comment out bad syscall failing piece of code for Android 2022-09-09 16:12:05 +03:00
Joining7943
2658f8ae5b tail: improve performance of piped stdin
Rewrite handling of stdin when it is piped and read input in chunks.

Fixes https://github.com/uutils/coreutils/issues/3842
2022-09-09 13:51:37 +02:00
Sylvestre Ledru
b39f5239e7
Merge pull request #3912 from uutils/dependabot/cargo/half-2.1.0
build(deps): bump half from 1.8.2 to 2.1.0
2022-09-09 08:40:49 +02:00
dependabot[bot]
2d59ec3453
build(deps): bump half from 1.8.2 to 2.1.0
Bumps [half](https://github.com/starkat99/half-rs) from 1.8.2 to 2.1.0.
- [Release notes](https://github.com/starkat99/half-rs/releases)
- [Changelog](https://github.com/starkat99/half-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/starkat99/half-rs/compare/v1.8.2...v2.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-08 20:21:18 +00:00
Sylvestre Ledru
f617652f48
Merge pull request #3909 from sylvestre/issue-3899
Bump Min Rust and fix test_closes_file_descriptors (Issue 3899)
2022-09-08 22:14:09 +02:00
Sylvestre Ledru
d1bbc37bc3 Set the rust-version flag 2022-09-08 20:28:33 +02:00
Sylvestre Ledru
a131ccd5dc cargo-deny: refresh with the new dependency 2022-09-07 21:26:06 +02:00
Sylvestre Ledru
e8ea75fc23 bump the Minimum Supported Rust Version to 1.59.0
Needed for os_str_bytes & time:

```
error: package `os_str_bytes v6.3.0` cannot be built because it requires rustc 1.57.0 or newer, while the currently active rustc version is 1.56.1
error: package `time v0.3.14` cannot be built because it requires rustc 1.59.0 or newer, while the currently active rustc version is 1.56.1
```
2022-09-07 21:26:06 +02:00
Sylvestre Ledru
a8d1d73465 fix a test on cp counting the number of fd:
The testsuite runs in parallel, we have pipe, sockets
opened by other tests.
So, we take in account the various fd to increase the limit
2022-09-07 21:26:03 +02:00
Terts Diepraam
987479d601
Merge pull request #3845 from jhscheer/fix_3842
tail: fix stdin redirect (#3842)
2022-09-07 19:10:45 +02:00
Jan Scheer
88d3aee71c tail: fix offset for stdin redirect if multiple input files 2022-09-05 10:09:04 +02:00
Jan Scheer
74f359bd76 tail: use same-file crate to get a handle of stdin redirected file 2022-09-05 10:09:04 +02:00
Jan Scheer
942928b0ea tail: fix stdin redirect when file is not at its beginning
Previously, if stdin redirect pointed to a regular file,
tailing started at the beginning of the file. However,
tailing needs to start at the current position because this
is expected by tests/tail-2/start-middle.sh.

This fixes the issue by taking the current offset into account
while going backwards through the stdin redirected file.
2022-09-05 10:09:04 +02:00
Jan Scheer
92c3f60440 tail: fix stdin redirect (#3842)
This fixes a bug where calling `tail - < file.txt` would result
in invoking `unbounded_tail()`.
However, it is a stdin redirect to a seekable regular file and
therefore `bounded_tail` should be invoked as if `tail file.txt` had
been called.
2022-09-05 10:09:04 +02:00
Terts Diepraam
e28301e969
Merge pull request #3902 from sylvestre/issue-3890
docker: Mount some volumes when building with cross
2022-09-05 10:06:11 +02:00