Commit graph

9147 commits

Author SHA1 Message Date
Daniel Hofstetter
74ed737460 remove NAME constants 2023-01-12 15:21:11 +01:00
Sylvestre Ledru
11d0ab5413
Merge pull request #4258 from Joining7943/tests-util-stdin-default-to-stdio-null
`tests/util`: Use `Stdio::null` as default stdin for child processes
2023-01-11 16:59:00 +01:00
Sylvestre Ledru
74c9abb359
Merge pull request #4274 from cakebaker/sum_fix_output_of_about_string
sum, unexpand: fix output of about string
2023-01-11 16:33:39 +01:00
Daniel Hofstetter
5ad3cbe965 unexpand: fix output of about string 2023-01-11 15:55:37 +01:00
Daniel Hofstetter
0f79b3cf2d sum: fix output of about string 2023-01-11 14:44:59 +01:00
Sylvestre Ledru
46cac1145b
Merge pull request #4273 from cakebaker/pr_help_output
pr: add missing '\' before line breaks
2023-01-11 14:16:05 +01:00
Sylvestre Ledru
d5e2050cf4
Merge pull request #4270 from rivy/rf.build-features
build: feature cleanup
2023-01-11 13:42:04 +01:00
Terts Diepraam
9ccfb025cf
Merge pull request #4264 from cakebaker/pr_seq_simplify_format_strings
pr,seq: simplify format strings
2023-01-11 13:17:13 +01:00
Daniel Hofstetter
073e6c8f62 pr: add missing '\' before line breaks 2023-01-10 10:55:36 +01:00
Roy Ivy III
c3c7054155 build: feature cleanup 2023-01-08 12:42:37 -06:00
Sylvestre Ledru
3033d017b5
Merge pull request #4266 from cakebaker/csplit_rename_var_and_simplify_format_strings
csplit: rename var to simplify format strings
2023-01-07 16:49:44 +01:00
Daniel Hofstetter
fe9779261f csplit: rename var to simplify format strings 2023-01-07 15:05:34 +01:00
Daniel Hofstetter
cc1f109906 pr,seq: simplify format strings 2023-01-06 10:39:43 +01:00
Sylvestre Ledru
ad542965ab
Merge pull request #4262 from cakebaker/pr_remove_comment
pr: remove commented out code line
2023-01-04 16:42:20 +01:00
Daniel Hofstetter
212ad777fc pr: remove commented out code line 2023-01-04 15:20:45 +01:00
Joining7943
463c58afd0 tests/tail: Remove redundant set_stdin(Stdio::null()) 2023-01-03 16:30:12 +01:00
Joining7943
9b35c5d5c1 tests/util: Use Stdio::null as default in UCommand for Child stdin instead of Stdio::piped 2023-01-03 16:30:08 +01:00
Sylvestre Ledru
c2e4da97da
Merge pull request #4251 from Joining7943/ci-run-tests-with-backtrace
`ci/tests`: Run cargo test with RUST_BACKTRACE=1
2023-01-02 10:09:54 +01:00
Sylvestre Ledru
75cf8ce6cb
Merge pull request #4252 from tertsdiepraam/track_caller
Put `#[track_caller]` on assertion functions in test utils
2023-01-02 09:58:15 +01:00
Joining7943
ccfc799b46 CI/tests: Run cargo test with RUST_BACKTRACE=1 2023-01-01 18:36:02 +01:00
Terts Diepraam
44ea43f058 tests: remove status_code, which is the same as code_is 2023-01-01 17:25:59 +01:00
Terts Diepraam
267a22e12c add track_caller attribute to assertion functions 2023-01-01 15:25:37 +01:00
Terts Diepraam
36f3507bed
Merge pull request #4232 from TechHara/whitespace
cut: add whitespace option for separating fields
2023-01-01 12:58:28 +01:00
Sylvestre Ledru
a3c76678fe
Merge pull request #4247 from tertsdiepraam/rm/add-fifo-test
rm: add test for #4246
2022-12-30 12:09:53 +01:00
Sylvestre Ledru
87da0c0a5f
Merge pull request #4248 from rivy/fix.expr
Multiple fixes and tests added for `expr`
2022-12-30 11:49:52 +01:00
Roy Ivy III
737271de96 test/expr: add regex tests 2022-12-29 23:22:13 -06:00
Roy Ivy III
8753fb95c3 fix/expr: EXIT_CODE=1 for any return output parsable to 0 (or empty) 2022-12-29 22:49:02 -06:00
Roy Ivy III
812d811ff6 test/expr: add simple value and EXIT_CODE tests 2022-12-29 22:49:02 -06:00
Roy Ivy III
fe954e5825 fix/expr: repair off-by-1 index operator error 2022-12-29 22:49:02 -06:00
Roy Ivy III
be37e033be test/expr: add more index testing of unicode strings 2022-12-29 22:49:02 -06:00
Roy Ivy III
8e7dbb0bf6 test/expr: add 'index' operator tests 2022-12-29 22:48:55 -06:00
Terts Diepraam
ea8085e2ca rm: add test for #4246 2022-12-29 16:15:41 +01:00
Sylvestre Ledru
f3285d9662
Merge pull request #4245 from rivy/chg.uname-to-tier1
build: `uname` is WinOS-compatible; move to 'Tier1' feature
2022-12-28 09:34:16 +01:00
Roy Ivy III
9b27cd8cb3 build: uname is WinOS-compatible; move to 'Tier1' feature 2022-12-27 10:55:34 -06:00
Sylvestre Ledru
666fe68675
Merge pull request #4224 from trasua/parse-size-option
uucore: add options to parse_size::Parser
2022-12-26 14:17:44 +01:00
trasua
ef8f92f720 uucore: add options to parse_size::Parser to support parse_byte_count() in sort.rs 2022-12-26 10:23:20 +01:00
jaggededgedjustice
b8a755a396
date: Catch panic from invalid format string (#4240)
* Catch panic from invalid date string
2022-12-25 21:11:34 +01:00
Sylvestre Ledru
083e4ac4df
Merge pull request #4242 from cakebaker/unnested_or_patterns
clippy: fix some "unnested or-patterns" warnings
2022-12-25 21:10:56 +01:00
TechHara
276b115c02 remove clippy allow; fmt 2022-12-23 09:56:21 -05:00
TechHara
20761fe422 simplify 2022-12-23 02:18:16 -05:00
TechHara
a53dcba6d3 mark fixme item -- use char for delimiter 2022-12-22 21:38:47 -05:00
Terts Diepraam
bdd6f56ae4
Merge pull request #4231 from Joining7943/add-timeout-in-tests
`tests/common/util`: Add possibility to set timeout for UCommand and UChild. Add `rstest` with timeout macro to dev dependencies
2022-12-23 01:12:57 +01:00
TechHara
a549589682 fix clippy warnings 2022-12-21 08:01:31 -05:00
TechHara
f2a7175144 enum Delimiter; misc changes 2022-12-20 20:37:31 -05:00
Daniel Hofstetter
a0522f5cbd clippy: fix some "unnested or-patterns" warnings 2022-12-20 16:07:37 +01:00
TechHara
c29839f4f9 Merge branch 'main' into whitespace 2022-12-18 09:07:03 -05:00
TechHara
df8ce0c999 ignore multispace cspell 2022-12-18 09:06:47 -05:00
Terts Diepraam
03710a180e
Merge pull request #4241 from sylvestre/android-test
Ignore some cp tests on android
2022-12-18 00:50:17 +01:00
Joining7943
09c04d9f3f tests: Set timeout for tests which would fail with the default timeout in test_factor, test_sort 2022-12-17 21:55:01 +01:00
Joining7943
1d7447d42e tests/util: Add setting timeout for UChild::kill and run and wait methods in UCommand and UChild.
Additional notes:
* Set default timeout to 30s
* Fix UChild::kill to always fail on timeout if zero
2022-12-17 21:53:39 +01:00