Commit graph

12078 commits

Author SHA1 Message Date
Sylvestre Ledru
cfb8e5919c
Merge pull request #5863 from lcheylus/openbsd-tests
tests: disable tests for tools unsupported on OpenBSD
2024-01-20 19:59:47 +01:00
Laurent Cheylus
4589f637ee tests: disable tests for tools unsupported on OpenBSD
pinky, uptime and who are not supported on OpenBSD (no support of utmpx feature) => disable tests
for these tools on OpenBSD with conditional compilation

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-19 17:37:45 +01:00
SaHHiiLL
746a7b14d0
tsort: returns error when input is dir - same as GNU tsort (#5860)
* fix: return error when input is dir

* test: when tsort is given a dir

* fix: do not need to mention tsort in error message

* test: using concrete directory name

* tsort: fix formatting in test

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-19 15:39:00 +01:00
Daniel Hofstetter
63ef7e4fdf
Merge pull request #5859 from uutils/renovate/davidanson-markdownlint-cli2-action-15.x
chore(deps): update davidanson/markdownlint-cli2-action action to v15
2024-01-19 11:10:32 +01:00
Daniel Hofstetter
ec0ea959fb
Merge pull request #5862 from uutils/renovate/smallvec-1.x
chore(deps): update rust crate smallvec to 1.13
2024-01-19 10:54:40 +01:00
renovate[bot]
b363064e48
chore(deps): update davidanson/markdownlint-cli2-action action to v15 2024-01-19 09:38:39 +00:00
renovate[bot]
667a9469c4
chore(deps): update rust crate smallvec to 1.13 2024-01-19 09:23:10 +00:00
Daniel Hofstetter
10b8c1c996
Merge pull request #5856 from uutils/renovate/actions-cache-4.x
chore(deps): update actions/cache action to v4
2024-01-18 07:01:29 +01:00
renovate[bot]
12758be6c6
chore(deps): update actions/cache action to v4 2024-01-17 17:09:22 +00:00
Sylvestre Ledru
b7a14ac119
Merge pull request #5825 from tertsdiepraam/codecov-uucore-features
CI: test `uucore` with `coreutils` in codecov to run it with the proper features
2024-01-17 11:51:02 +01:00
Terts Diepraam
61de1dc23a uucore/sum: fix crlf test 2024-01-17 10:44:33 +01:00
Terts Diepraam
3bd9f0ec65
Merge pull request #5811 from spineki/fix-printf-hex-alternate-zero
Printf: Fix printf hex alternate zero
2024-01-17 10:28:30 +01:00
Ulrich Hornung
dc533a915a
install: fix strip program stdout and destination hyphen handling #5718 (#5848)
* Fix missing dependency to "process" to make it compile.

* fix issue of not forwarding stdout from strip program

* fix issue of applying "./" redundantly

* cargo fmt
2024-01-17 10:07:34 +01:00
Daniel Hofstetter
55b7b2fcb5
Merge pull request #5835 from sylvestre/mv-acl
mv: preserve the xattr
2024-01-16 13:56:37 +01:00
Sylvestre Ledru
69c8753f80 cp test: use compare_xattrs from tests/utils 2024-01-16 13:12:02 +01:00
Sylvestre Ledru
3872aca9c6 spell: ignore getxattr 2024-01-16 13:12:02 +01:00
Sylvestre Ledru
66637a6503 move the file_has_acl function into uucore 2024-01-16 13:12:02 +01:00
Sylvestre Ledru
2ec4e9f784 mv: preserve the xattr
Should make tests/mv/acl pass
2024-01-16 13:12:02 +01:00
Sylvestre Ledru
238fb776ad test: add a function to compare the xattr between two files.
used by cp & mv (at least)
2024-01-16 13:12:02 +01:00
Sylvestre Ledru
fe3f8293ef uucore: add a new feature called fsxattr 2024-01-16 13:11:58 +01:00
Daniel Hofstetter
112eb21eb3
Merge pull request #5791 from sylvestre/handle-error
Handle better some errors
2024-01-15 15:19:10 +01:00
Sylvestre Ledru
fff83995fb
cp: --preserve should keep xattr (#5834)
* cp: --preserve should keep xattr

Should help with tests/cp/acl.sh

* Update tests/by-util/test_cp.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update tests/by-util/test_cp.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update tests/by-util/test_cp.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-15 10:59:04 +01:00
Sylvestre Ledru
b116a97fdc
add missing \n 2024-01-15 10:43:20 +01:00
Sylvestre Ledru
4557821adf
Merge branch 'main' into fix-printf-hex-alternate-zero 2024-01-15 10:41:09 +01:00
Sylvestre Ledru
e340d8177e
Merge pull request #5842 from cakebaker/uucore_fix_clippy_warning
uucore: fix clippy warning from if_not_else lint
2024-01-15 10:40:23 +01:00
Daniel Hofstetter
e91540fc07 uucore: fix clippy warning from if_not_else lint 2024-01-15 10:27:59 +01:00
Biplab Mochan Gartia
076b905513
cksum: stops when one of given files doesn't exist #5809 (#5820)
* cksum: stops when one of given files doesn't exist #5809

* removed printld  cksum: stops when one of given files doesn't exist #5809

* formatting the code cksum: stops when one of given files doesn't exist #5809

* formatting the code cksum: stops when one of given files doesn't exist #5809

* set exist status cksum: stops when one of given files doesn't exist #5809

* code quality formatting issue cksum: stops when one of given files doesn't exist #5809

* tertsdiepraam idea cksum: stops when one of given files doesn't exist #5809

* one new test case and deleted duplicate show cksum: stops when one of given files doesn't exist #5809

* formatting the test cases cksum: stops when one of given files doesn't exist #5809

* Revert "formatting the test cases cksum: stops when one of given files doesn't exist #5809"

This reverts commit 8c382f1e8f.

* reverting the changes and committing again due to a mistake cksum: stops when one of given files doesn't exist #5809

---------

Co-authored-by: biplab5464 <biplab5464@outlook.com>
2024-01-15 09:37:56 +01:00
Daniel Hofstetter
6d5f2e4129
Merge pull request #5841 from uutils/renovate/xattr-1.x
chore(deps): update rust crate xattr to 1.3.1
2024-01-15 07:00:54 +01:00
renovate[bot]
7914f22cfe
chore(deps): update rust crate xattr to 1.3.1 2024-01-15 03:14:26 +00:00
Sylvestre Ledru
67992be245
Merge pull request #5658 from cakebaker/bump_redox_syscall
Bump redox_syscall to 0.4.1
2024-01-14 23:42:34 +01:00
Sylvestre Ledru
36039a819d
Merge pull request #5739 from cakebaker/cp_backup_with_symlink_to_source
cp: backup dest symlink linking to source
2024-01-14 23:30:06 +01:00
Sylvestre Ledru
e3beda08ac
Merge pull request #5762 from cakebaker/cp_link_same_file
cp: show no "same file" error for `--link a a`
2024-01-14 23:29:33 +01:00
Sylvestre Ledru
ef03a4625f
Merge pull request #5806 from cakebaker/nl_is_a_directory
nl: don't exit if input is directory
2024-01-14 23:29:05 +01:00
Sylvestre Ledru
ae279c9961
Merge pull request #5818 from cakebaker/pathchk_no_args
pathchk: simplify and rename test
2024-01-14 23:28:42 +01:00
Sylvestre Ledru
3d356d47b3 expand: avoid an infinite loop 2024-01-14 23:27:00 +01:00
Sylvestre Ledru
8d24036f5c basenc: handle '--base32 .' arg 2024-01-14 23:27:00 +01:00
Sylvestre Ledru
4f33a375cd factor: handle the '< .' arg 2024-01-14 23:26:57 +01:00
Sylvestre Ledru
22a7173305
Merge pull request #5838 from cakebaker/head_fix_clippy_warnings_in_tests
head: fix clippy warnings in tests
2024-01-14 16:23:05 +01:00
Sylvestre Ledru
e01d5f75f7
ls: if acl are used, show the + in the perms (#5816)
* ls: if acl are used, show the + in the perms

Tested by tests/mkdir/p-acl.sh

* CICD.yml: fix small formatting issue

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-14 15:57:22 +01:00
Daniel Hofstetter
aeee56b3c3 head: fix clippy warnings in tests 2024-01-14 15:23:24 +01:00
Daniel Hofstetter
dc41ed2aeb
Merge pull request #5836 from uutils/renovate/smallvec-1.x
chore(deps): update rust crate smallvec to 1.12
2024-01-14 12:48:49 +01:00
renovate[bot]
e860b32a82
chore(deps): update rust crate smallvec to 1.12 2024-01-14 00:28:34 +00:00
Daniel Hofstetter
ac27b6c4b0
Merge pull request #5833 from sylvestre/cut-multiple
cut: allow the same option to be passed multiple times
2024-01-13 16:58:04 +01:00
Daniel Hofstetter
30ab8382aa
Merge pull request #5832 from sylvestre/fuzz-pipe-stderr
fuzz: with pipe, also capture stderr
2024-01-13 16:53:17 +01:00
Daniel Hofstetter
cc01c5e64c
Merge pull request #5736 from uutils/renovate/tempfile-3.x
chore(deps): update rust crate tempfile to 3.9.0
2024-01-13 16:00:04 +01:00
Sylvestre Ledru
bc51b8d216 cut: allow the same option to be passed multiple times 2024-01-13 15:09:16 +01:00
Daniel Hofstetter
e0abb76c0f Bump redox_syscall to 0.4.1
redox_syscall from 0.3.5 & 0.4.0 -> 0.4.1
filetime from 0.2.22 -> 0.2.23
parking_lot_core from 0.9.8 -> 0.9.9
2024-01-13 14:58:36 +01:00
renovate[bot]
c63b5b2a5d
chore(deps): update rust crate tempfile to 3.9.0 2024-01-13 13:57:26 +00:00
Sylvestre Ledru
2d0ab708cc
Merge pull request #5824 from cakebaker/bump_console_and_mio
Bump console and mio
2024-01-13 14:55:09 +01:00
Atomei Alexandru
563df4b79d
Made cksum return an error if used on a directory. (#5822)
* Made cksum to return an error if it is used on a directory regardless of the algorithm

* Added one more test for cksum on folders and deleted an old one that expected it to succeed instead of fail

* Made cksum work on more than one item if it fails and added a test for this case
2024-01-13 14:43:36 +01:00