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
Starccy
b6ec498e0e
"style: fix/format scripts to meet the shellcheck
/shfmt
rules"
2023-07-17 10:53:44 +08:00
Sylvestre Ledru
74530c0f51
Update the version to 0.0.20
2023-07-14 13:04:17 +02:00
Terts Diepraam
948836fb8f
Update util/deps.nu
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-07-09 16:43:48 +02:00
Terts Diepraam
c0dad2ef16
add nushell dependency analysis script
2023-07-07 14:37:08 +02:00
Joseph Jon Booker
9bf1fb5838
util/build-gnu.sh reword error w/o gnu coreutils
...
For a new contributor, the message given by `utils/build-gnu.sh` is
fairly confusing - it starts with several lines of noise (showing
variables that are set in the script) followed by an error about missing
"GNU" and a `git` command string.
This commit changes the script to explicitly instruct the user to run
the `git clone` command. Since the GNU coreutils repository is probably
missing for new developers, this error is shown if the repository is
missing without including VARIABLE=value lines that are not actionable
yet.
2023-06-29 10:50:15 +02:00
Sylvestre Ledru
01af46e914
Use misc instead of test
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-06-20 15:45:55 +02:00
Sylvestre Ledru
e70d7d3b90
Hack the tests/help/help-version-getopt.sh tests:
...
* "hostid BEFORE --help" doesn't fail for GNU. we fail. we are probably doing better
* "hostid BEFORE --help AFTER " same for this
2023-06-19 22:32:49 +02:00
Sylvestre Ledru
9f38142522
add uuhelp to the ignore spell
2023-06-04 11:27:50 +02:00
Sylvestre Ledru
c6ad9846f9
update of the version script
2023-06-04 09:46:59 +02:00
Sylvestre Ledru
c8b4e06828
add uuhelp_parser to the publish script
2023-06-04 09:46:59 +02:00
Sylvestre Ledru
830b7d5ce1
New release
2023-06-04 09:46:59 +02:00
Sylvestre Ledru
a0f4576f8a
update of the release doc
2023-06-04 09:46:59 +02:00
Daniel Hofstetter
d458f3e594
Merge pull request #4864 from sylvestre/why-skip
...
Document why tests are skipped
2023-05-16 17:04:33 +02:00
Daniel Hofstetter
5b715b4085
Add "spell-checker:ignore" line
2023-05-16 16:10:18 +02:00
Sylvestre Ledru
6c1552cc20
Document why tests are skipped
2023-05-15 23:20:19 +02:00
Sylvestre Ledru
a1a136650b
remaining-gnu-error.py: split SKIP & ERROR
2023-05-15 21:46:07 +02:00
Sylvestre Ledru
ada1df2e8e
android: try to use nextest again
2023-05-06 10:50:04 +02:00
Daniel Hofstetter
6776cd67d4
Merge pull request #4809 from sylvestre/inaccessible
...
gnu: adjust tests/rm/inaccessible.sh error message
2023-05-01 10:14:38 +02:00
Sylvestre Ledru
0e95ce571f
gnu: adjust tests/rm/inaccessible.sh error message
2023-05-01 08:40:07 +02:00
Sylvestre Ledru
bbb218c0e2
Remove bad c/p
2023-04-30 17:21:34 +02:00
Sylvestre Ledru
1055918c31
Document why we can't use nextest for now
2023-04-30 16:58:29 +02:00
Sylvestre Ledru
ba8fa58a9a
android: increase the retries + sleep
2023-04-29 19:49:44 +02:00
Sylvestre Ledru
ffa2118717
add debug info
2023-04-29 12:47:48 +02:00
Sylvestre Ledru
0c9c54275e
simplify it
2023-04-29 12:37:08 +02:00
Sylvestre Ledru
6f44d9b7af
android: use cargo test instead of nextest
...
nextest does build because of:
2023-04-29T08:03:36.5411530Z Compiling log v0.4.17
2023-04-29T08:03:36.5412100Z error[E0432]: unresolved import linux_raw_sys::ioctl
2023-04-29T08:03:36.5412710Z --> /data/data/com.termux/files/home/.cargo/registry/src/github.com-1285ae84e5963aae/rustix-0.37.17/src/backend/libc/io/syscalls.rs:384:24
2023-04-29T08:03:36.5413150Z |
2023-04-29T08:03:36.5413830Z 384 | use linux_raw_sys::ioctl::EXT4_IOC_RESIZE_FS;
2023-04-29T08:03:36.5414380Z | could not find ioctl in linux_raw_sys
2023-04-29T08:03:36.5414590Z
2023-04-29T08:03:36.5414840Z For more information about this error, try rustc --explain E0432.
2023-04-29T08:03:36.5415280Z error: could not compile rustix due to previous error
2023-04-29T08:03:36.5415730Z warning: build failed, waiting for other jobs to finish...
https://github.com/nextest-rs/nextest/issues/862
2023-04-29 10:56:14 +02:00
Sylvestre Ledru
c5fb6eac9f
Merge pull request #4794 from shinhs0506/mv-target-dir
...
mv: check if --target is a directory
2023-04-29 10:40:44 +02:00
Sylvestre Ledru
5a77608ef9
move the declaration on a single line
2023-04-29 09:48:05 +02:00
John Shin
ee3da4284c
mv: update gnu error message to match the one generated by clap
2023-04-28 18:39:41 -07:00
Daniel Hofstetter
9b67ad05b8
build-gnu.sh: always update PATH in Makefile
2023-04-26 17:07:18 +02:00
Sylvestre Ledru
afa5c15581
gnu test: don't sync the po files
...
We aren't testing the locale yet.
2023-04-24 12:03:21 +02:00
Joining7943
ad5d33f1a9
ci/android: Fix and improve caching. Fix and improve android-commands.sh
2023-04-20 17:36:25 +02:00
Joining7943
f155185df6
util/android-commands: Fix shellcheck warnings. Reformat file.
2023-04-20 16:48:15 +02:00
Joining7943
037aaf0a36
android-commands.sh: Reformat file with shftm
2023-04-19 22:06:12 +02:00
Joining7943
78ce521c01
ci: Use nextest as test runner instead of cargo test
2023-04-19 22:06:06 +02:00
Daniel Hofstetter
40fef49817
Fix incorrect comment & remove irrelevant comment
2023-04-13 16:47:05 +02:00
Sylvestre Ledru
af0a263191
0.0.17 => 0.0.18
2023-03-29 08:11:25 +02:00
Sylvestre Ledru
d7bc324979
Merge pull request #4656 from sylvestre/du-th
...
du: Update the GNU error message to our for tests/du/threshold.sh
2023-03-29 07:48:19 +02:00
Sylvestre Ledru
71228f98e1
Merge pull request #4626 from sylvestre/python-error-mmgt
...
manage an potential error in util/remaining-gnu-error.py when GNU isn't up to date
2023-03-28 10:44:40 +02:00
Sylvestre Ledru
f7ff0d45b8
du: Update the GNU error message to our for tests/du/threshold.sh
...
We are doing a better job.
Make it FAIL => PASS
2023-03-27 22:10:07 +02:00
Sylvestre Ledru
355d242e7a
python: simplify the code a bit
2023-03-26 10:08:25 +02:00
Sylvestre Ledru
f8e0a73fb5
manage an potential error in util/remaining-gnu-error.py when GNU isn't up to date
2023-03-26 10:08:25 +02:00
Miles Liu
04f1b31889
util/show-utils: fix script not working as intended
2023-03-21 09:25:17 +08:00
Miles Liu
787ad780c0
docs: fix tr.pl and stat-printf.pl don't show up in gnu-full-result
2023-03-13 15:40:01 +08:00
Terts Diepraam
9e217ab30d
utils: create a script to explore binary sizes
2023-02-26 16:55:53 +01:00
Miles Liu
e8f7395a8a
docs: fix invalid test status in gnu-full-result
2023-02-01 20:54:37 +08:00
Terts Diepraam
a9f1743ba6
util: fix publish order of uucore_procs and uucore
2023-01-21 13:00:49 +01:00
Terts Diepraam
4d3dc78686
Version 0.0.17
2023-01-21 10:38:18 +01:00
Joining7943
ccfc799b46
CI/tests: Run cargo test with RUST_BACKTRACE=1
2023-01-01 18:36:02 +01:00
Jeffrey Finkelstein
a396ebd883
touch: add support for some relative times
...
For example,
$ touch -d +1 days
Fixes #3964 .
2022-11-29 22:53:13 +01:00
Daniel Hofstetter
4fdfedf61e
build-gnu: fix test for numfmt
2022-11-02 10:20:04 +01:00
Terts Diepraam
9e1902eae3
build-gnu: fix test for basenc
2022-10-13 23:04:58 +02:00
Terts Diepraam
f15c4f2d3e
Version 0.0.16
2022-10-11 23:03:39 +02:00
Terts Diepraam
84f9879e5c
util/update-version: fix update of uu_base32 dependency
2022-10-11 23:03:18 +02:00
Terts Diepraam
b2b46a6835
util/update-version: also update Cargo.toml of uucore
2022-10-11 22:58:04 +02:00
Terts Diepraam
b869c78343
util/publish: update to correctly handle dependencies between utils
2022-10-11 22:49:04 +02:00
Sylvestre Ledru
2e26e1d2bd
chroot: implement --skip-chdir
2022-09-21 19:46:58 +02:00
Sylvestre Ledru
20af659f09
Run the GNU root tests in a separate task
2022-09-17 13:19:06 +02:00
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
Niyaz Nigmatullin
84abf9c920
CI/android: add 60 min timeout for cargo test to see where it's stuck
2022-08-24 08:21:24 +03:00
Terts Diepraam
a28dd25cb3
all: fix spelling errors
2022-08-20 13:24:06 +02:00