Commit graph

244 commits

Author SHA1 Message Date
kralo 9ae5cc741b util: disable mirror selection by Variable 2024-01-28 08:56:08 +01:00
Sylvestre Ledru dd5c6c2d00 0.0.23 => 0.0.24 2024-01-20 20:12:19 +01:00
Sylvestre Ledru 724305e64f Remove the tests/cp/link-heap.sh workaround
No longer needed since github.com/uutils/coreutils/pull/5789 landed
2024-01-06 23:33:32 +01:00
Sylvestre Ledru aabf5fa577 cp: manages target with trailing '/' 2024-01-05 12:56:27 +01:00
Sylvestre Ledru 932ea96cb6 Update a GNU test error check - tests/cp/fail-perm.sh 2024-01-05 00:03:12 +01:00
Sylvestre Ledru 217aa3bd9d gnu compare: try to use a local copy if the download failed 2024-01-03 20:42:25 +01:00
Daniel Hofstetter 442da9ac54
Merge pull request #5774 from lcheylus/bsd-scripts
Fix util shell scripts to be compatible with BSD
2024-01-03 10:45:19 +01:00
Laurent Cheylus 13665da85e
run-gnu-test.sh: modify script to be compatible with BSD OS
- Use /usr/bin/env bash instead of /bin/sh to use OSTYPE
  - Define variables for GNU version of make, nproc, readlink and use them on BSD.

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Laurent Cheylus aef204461c
util: modify scripts for code coverage to be compatible with BSD OS
- Use /usr/bin/env bash instead of /bin/sh to use OSTYPE
  - Use readlink from GNU coreutils on BSD OS in util/build-code_coverage.sh and
    util/show-code_coverage.sh scripts

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Laurent Cheylus d450d5a463
show-utils.sh: modify script to be compatible with BSD OS
- Use /usr/bin/env bash instead of /bin/sh to define OSTYPE
  - Use GNU realpath on BSD OS (FreeBSD and OpenBSD)

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Laurent Cheylus 7aca1f932a
build-gnu.sh: modify script to be compatible with BSD OS
- Define variables for GNU version of make, nproc, readlink and sed and use them on BSD.
  - In specific cases (option -z not available on BSD and with command /c), use GNU sed instead of
    BSD sed.
  - For xargs, --no-run-if-empty option is a GNU extension. Replace it by -r to be compatible with
    FreeBSD and OpenBSD xargs command.

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Laurent Cheylus 6d3345cfec
util: use env to call bash in shell scripts
- For shell scripts using bash, use #!/usr/bin/env bash instead of #!/bin/bash.
    On some OS, bash is not the default shell and is not installed as /bin/bash

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-02 22:05:02 +01:00
Sylvestre Ledru 4a28b1674a remaining-gnu-error.py: shows when a test requires root 2024-01-02 20:33:21 +01:00
Daniel Hofstetter 2a81c91f52
Merge pull request #5771 from sylvestre/tail-error
tail: transform FAIL into ERROR for tests/tail/inotify-rotate-resources.sh
2024-01-02 07:20:25 +01:00
Sylvestre Ledru 203600bb9c tail: transform FAIL into ERROR for tests/tail/inotify-rotate-resources.sh 2024-01-02 00:42:52 +01:00
Sylvestre Ledru d640e690f4 Workaround https://github.com/uutils/coreutils/issues/5766
to transform an ERROR into FAIL
2024-01-02 00:13:20 +01:00
Sylvestre Ledru 3560ec6811 gnu-built: disable some options in the GNU build 2023-12-31 13:08:23 +01:00
Sylvestre Ledru f23902ff7a gnu-built: remove the useless sed
It will avoid a rebuilding when doing:
bash util/build-gnu.sh && bash util/run-gnu-test.sh   ../gnu/tests/rm/empty-inacc.sh
2023-12-31 13:08:14 +01:00
Sylvestre Ledru 55de78037d ls/gnu: ignore the libcap check 2023-12-28 23:21:44 +01:00
Sylvestre Ledru 30eb77ac79
du: implement files0-from (#5721)
* du: implement files0-from

Should make tests/du/files0-from-dir pass

* du: prepare tests/du/files0-from.pl

* fix the build on Windows

* add testfile to the ignore list

* remove useless comment

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

* mkdir is enough

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

* address review comments

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-26 14:40:31 +01:00
Sylvestre Ledru 527b6e7693
Merge pull request #5051 from tertsdiepraam/deps-nu-shell
Add nushell dependency analysis script
2023-12-25 12:56:41 +01:00
Daniel Hofstetter 6475e6f148
Merge pull request #5660 from sylvestre/stat-free-color
ls: Improve the access to metadata of the files
2023-12-25 08:29:25 +01:00
Sylvestre Ledru 3e892de4d5 gnu: Improve the diff when comparing diff 2023-12-24 16:37:43 +01:00
Sylvestre Ledru 69f723a263 ls: adjust the tests/ls/stat-free-color.sh as we have less syscall 2023-12-24 14:57:06 +01:00
Sylvestre Ledru 07374a9588 mv: dir2dir: adjust GNU tests - our error message is better 2023-12-20 23:09:15 +01:00
Sylvestre Ledru ba0c89fc5e build-gnu.sh: build in debug by default. Easier for local dev 2023-12-16 15:06:58 +01:00
Sylvestre Ledru 6446ef294c publishing: check if the current version is already there or not
This can happen when a publishing step failed
2023-11-14 21:35:15 +01:00
Sylvestre Ledru ff92bfb25b Prepare version 0.0.23 2023-11-13 22:02:01 +01:00
Sylvestre Ledru 3bf1ed4195 df: Replace the error message by the one generated by clap
Failed with:
-df: options OPT and --output are mutually exclusive
-Try 'df --help' for more information.
+error: the argument '--inodes' cannot be used with '--output[=<FIELD_LIST>...]'
+
+Usage: df [OPTION]... [FILE]...
2023-10-24 23:57:48 +02:00
Sylvestre Ledru 937f29b807 ls: update of the GNU test error output 2023-10-23 09:39:51 +02:00
Sylvestre Ledru 43f14e4126 pr: skip a test for now for way too long log 2023-10-22 22:11:34 +02:00
Sylvestre Ledru fa265b0520 rm: adjust fail-2eperm.sh - gnu test 2023-10-22 10:47:17 +02:00
Sylvestre Ledru 73b7c46131
Merge pull request #5409 from sylvestre/version-22
0.0.21 => 0.0.22
2023-10-15 15:50:01 +02:00
Sylvestre Ledru fcd0817b3b update of the release doc 2023-10-15 14:34:16 +02:00
Sylvestre Ledru e1bd47d549 0.0.21 => 0.0.22 2023-10-15 14:33:23 +02:00
boxdot e88183174b
relpath: remove
Closes #5236
2023-10-04 16:13:06 +02:00
Daniel Hofstetter 22f72544a8 run-gnu-test.sh: accept "run-root" as first param 2023-09-26 09:33:14 +02:00
Sylvestre Ledru 9fcf4cd8e5 run-gnu-test.sh: show if we can't find the file
Otherwise, the error can be cryptic

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-09-25 14:41:42 +02:00
Terts Diepraam df6193f84c clean up deps.nu 2023-09-24 15:41:37 +02:00
Sylvestre Ledru 48613b4717 ls --dired: replace the previous "total: xx" padding method
by something easier
2023-09-23 09:31:16 +02:00
Daniel Hofstetter 89aef11208 build-gnu.sh: fix formatting 2023-09-20 10:02:20 +02:00
Sylvestre Ledru 9b4d2c6bc4
ls: implement --dired
* Support ls --dired

* stat-failed.sh: update of the test - we have a small difference

* ls --dired: address some of the comments

* fix warnings

* use unwrap()

* Improve test

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

* Simplify test

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

* Remove a word from the spell ignore

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

* remove duplication of the spell ignore

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

* rustfmt

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-09-20 08:17:46 +02:00
Daniel Hofstetter 1a086ead7f build-gnu.sh: fix formatting issues 2023-09-05 10:05:58 +02:00
Yury Zhytkou 862a2df924
build-gnu.sh: fix for /usr/bin/timeout on MacOS (#5194)
* build-gnu.sh: `/usr/bin/timeout` should not be hardcoded to /usr/bin location
Fixes #5193
2023-09-04 18:23:49 +02:00
Sylvestre Ledru 9844f1f07d 0.0.20 => 0.0.21 2023-09-03 14:42:54 +02:00
Sylvestre Ledru 3e953779ae
Update util/build-gnu.sh
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-08-30 10:30:36 +02:00
Sylvestre Ledru cf91a1cc95 Adjust the paths to the path after the 9.4 release 2023-08-29 22:45:38 +02:00
Daniel Hofstetter 055a76728f build-gnu.sh: indent comment 2023-07-29 08:18:35 +02:00
Sylvestre Ledru df74d8e877
Merge pull request #5112 from sylvestre/selinux-no-mac
only set SELINUX_ENABLED=1 on Linux
2023-07-25 20:17:43 +02:00
Sylvestre Ledru f50cde252b only set SELINUX_ENABLED=1 on Linux 2023-07-24 21:30:23 +02:00