Commit graph

151 commits

Author SHA1 Message Date
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
Terts Diepraam 15180249fc Version 0.0.15 2022-08-20 13:13:22 +02:00
Terts Diepraam 0f12806b5c util: add ls dependency update to {dir, vdir} 2022-08-20 12:27:18 +02:00
Terts Diepraam 5422d931ab util: simplify update-version.sh
Now that the versions of the utils, uucore and uucore_procs are synced, we can use the same variables for all updates
2022-08-20 12:14:14 +02:00
Sylvestre Ledru 2870fb091b remaining-gnu-error.py: separate FAIL from ERROR/SKIP 2022-08-14 22:23:23 +02:00
Sylvestre Ledru c8aa5bcbd7 reformat python code with black 2022-08-14 12:45:51 +02:00
Jan Scheer 5258dec9a8
tail: fix race condition (#3798)
* tail: fix race condition (fix #3765)

There exists a race condition (RC) that can occur if changes to a path
happen after the initial print loop in `uu_tail()`, but before the
path is added to the notify-Watcher thread in `follow()`.

To minimize the window where the RC can occur, this moves starting the
Watcher thread and adding paths to it from `follow()` to the initial
print loop in `uu_tail()`.

Additionally, to make sure the RC cannot happen in
"gnu/tests/tail-2/F-headers.sh", the error message that is used as a trigger
in this test, is delayed until the path is added to the Watcher thread.

* build-gnu: remove workarounds for tail

Remove workarounds for "tests/tail-2/F-headers.sh" which are
(presumably) no longer needed because of the race condition fix.

* build-gnu: remove workarounds for tail

Remove workarounds for "tests/tail-2/F-headers.sh" which are
(presumably) no longer needed because of the race condition fix.

* tail: refactor to minimize chances of RC

Move "adding paths to Watcher thread" to its own loop and run this loop
before the initial tail-print-loop in order to minimize the window for
race conditions.
2022-08-14 01:01:15 +02:00
Niyaz Nigmatullin 5978185f94 fix spelling 2022-08-09 08:35:10 +03:00
Niyaz Nigmatullin dbaff49de6 gnu-tests: disable some tests that implementation-specific 2022-08-09 08:35:10 +03:00
Jan Scheer 39505e39ed
build-gnu: attempt to fix #3765 2022-08-05 07:33:36 +02:00
Niyaz Nigmatullin 85021041b4 F-headers: try make 409 seconds timeout 2022-08-02 15:38:25 +03:00
Niyaz Nigmatullin 20a103f9c7 gnu-tests/F-headers: increase number of attempts 2022-08-02 15:38:25 +03:00
Niyaz Nigmatullin e5fc8bca8d basenc: fix error code on on wrong arguments, fix usage printing test 2022-07-25 23:12:10 +03:00
Niyaz Nigmatullin f220c86121 util/build-gnu.sh: remove some test changes + change some messages 2022-07-19 17:34:52 +03:00
Jan Scheer 75edeea5e4
tail: reduce CPU load for polling (#3618)
* tail: reduce CPU load for polling

This reduces the CPU load for polling drastically (from ~80% down to ~5%)
by removing/fixing several previous workarounds related to polling,
while still passing all related GNU test-suite checks.
* set Notify::PollWatcher delay to: sleep_sec/10 instead of
  sleep_sec/100
* set recv_timeout to sleep_sec instead of sleep_sec/100
* remove the manual polling of watched files

Bugs:
* fix an issue with headers to consistently pass
"test_follow_name_retry_headers" and "gnu/tests/tail-2/overlay-headers.sh"

Code clean-up and refactor
* make fields of struct FileHandling private (and add getters/setters)
to ensure that the paths are absolute and match the paths returned by
Notify::Events
* replace calls to "crash!" with "return USimpleError"
* clean-up formatting
2022-06-21 22:21:19 +02:00
Terts Diepraam e3f14ea6e5
Merge pull request #3651 from sylvestre/gnu-install
install: verbose messages shows ginstall as command
2022-06-19 12:08:53 +02:00
Sylvestre Ledru 43ce927bdb install: verbose messages shows ginstall as command 2022-06-18 22:37:09 +02:00
Sylvestre Ledru aacf4a7dbe
sleep: Remove an incorrect comment 2022-06-18 12:22:39 +02:00
Sylvestre Ledru 0be1b7c76a
Fix typo 2022-06-15 14:33:19 +02:00
Sylvestre Ledru 1747b20cf0 sleep: return 1 is no arg + customize one of the tests (tests/misc/sleep.sh) 2022-06-15 08:57:30 +02:00
Sylvestre Ledru b9d3841019 build gnu: continue the customization of the tests 2022-06-13 22:43:55 +02:00
Jan Scheer 8ee806a444
Merge branch 'main' into tail_notify 2022-06-02 16:31:25 +02:00
Sylvestre Ledru aeb01c6f52
Merge pull request #3563 from sylvestre/hard-to-sym
ln: Implement -L -P to make tests/ln/hard-to-sym.sh work
2022-06-02 08:19:17 +02:00
Sylvestre Ledru 06c2aea1b4 ln: Implement -L -P to make tests/ln/hard-to-sym.sh work 2022-06-01 23:03:50 +02:00
Jan Scheer dc4b6f2cf9
Merge branch 'main' into tail_notify 2022-05-23 01:10:32 +02:00
Terts Diepraam eae07adfb1
Version 0.0.14 (#3553)
Version 0.0.14
2022-05-22 19:57:19 +02:00
Jan Scheer 409878e323
Merge branch 'main' into tail_notify 2022-05-16 22:45:52 +02:00
Jan Scheer 5004d4b458
build-gnu: replace timeout for tests/tail/follow-stdin.sh
* `tests/tail-2/follow-stdin.sh` will hang undefinedly if uu_timeout
is used
2022-05-16 21:09:51 +02:00
Sylvestre Ledru ece9ccdbfb Add missing \# interpreter line 2022-05-10 13:49:52 +02:00
Sylvestre Ledru 087d4b14fc Do not use the Rust/touch for tests/ls/abmon-align.sh 2022-05-08 21:27:08 +02:00
Sylvestre Ledru 0314f3ed8e GNU testsuite: no need to rerun the GNU build
At least, two use cases:
* when hacking on test update
* when we want to rebuild only Rust coreutils with the right option

Indeed, the GNU code should not cache often in this case
2022-05-01 19:04:52 +02:00
ndd7xv 88752ecc3e fix -h and --help discrepancies
addresses https://github.com/uutils/coreutils/issues/3370
2022-04-27 23:16:36 -04:00
Justin Tracey 4caeb2ff1d add Android to CICD 2022-04-20 08:44:49 +02:00