77 Commits
Author SHA1 Message Date
Daniel HofstetterandGitHub a77e218a79 Merge pull request #7690 from nyurik/manual-inline
chore: manual inline formatting - tests
2025-04-08 15:27:14 +02:00
Yuri Astrakhan 3dc771924c chore: cleanup trailing commas before parens
Deleted commas in cases like `foo,)` -- mostly in macros
2025-04-08 00:33:58 -04:00
Yuri Astrakhan 982805d3cd chore: manual inline formatting
Minor manual cleanup - inlined many format args.  This makes the code a bit more readable, and helps spot a few inefficiencies and possible bugs.  Note that `&foo` in a `format!` parameter results in a 6% extra performance cost, and does not get inlined by the compiler (yet).
2025-04-08 00:23:21 -04:00
Nicolas Boichat 6243dd5494 uucore: Move parser to a feature
This will eventually be needed as we'll want parse_time to
call into num_parser, which was previously contained in format
feature.
2025-04-04 15:25:06 +02:00
Sylvestre Ledru b4ac10769d add some missing unsafe 2025-03-24 21:33:16 +01:00
Daniel Hofstetter 41f1c6b2da fuzz: use new "<"/">" operators in fuzz_test 2025-02-21 14:58:54 +01:00
Dorian Peron 6afa515859 fuzz(cksum): fix fuzzer to use GNU's binary instead of the systems', remove false positives, improve logging 2025-02-12 19:46:18 +01:00
Dorian Peron 5d952afa3d fuzz: improve readability of fuzzer output, add colors 2025-02-09 00:33:21 +01:00
Daniel Hofstetter 9aec9dc454 fuzz: adapt to API changes of rand 2025-01-30 14:41:36 +01:00
Sylvestre Ledru 04f130ac08 fuzzing: add a new fuzzer for cksum 2024-11-16 20:18:12 +01:00
Sylvestre Ledru 6f43aa3739 fuzzing: add a function to generate a file with random content 2024-11-16 20:18:12 +01:00
Andrew Liebenow bac29943cb fuzz: run GNU Core Utilities with LC_ALL=C 2024-10-18 09:33:02 -05:00
Sylvestre LedruandGitHub 10def29b96 seq: fuzz PreciseNumber::from_str (#6183)
* fuzz the seq parse number functions

* run fuzz_parse_number into the CI
2024-04-15 08:07:06 +02:00
Sylvestre LedruandGitHub 076710d288 Merge pull request #6167 from sylvestre/fuzz_env
add env & tr fuzzers + small improvs
2024-04-02 09:10:33 +02:00
Sylvestre Ledru 7919b4e3cd fuzz: start fuzzing env & tr 2024-04-01 23:19:02 +02:00
Ben Wiederhake 58aab48ab2 fuzz: also generate the empty string sometimes
Inspired by #6167, #6175, and the observation that 'echo hello "" world | hd' outputs extra spaces.
2024-04-01 21:02:08 +02:00
Sylvestre Ledru 08f324bf40 Silent some clippy warnings 2024-04-01 01:06:17 +02:00
Sylvestre Ledru 39b6059910 rustfmt the expr fuzzer 2024-04-01 01:06:17 +02:00
Daniel Hofstetter 89bad851e6 fuzzing: set LC_ALL=C when running GNU printf 2024-02-17 16:07:03 +01:00
Daniel Hofstetter 12f0972df4 fuzzing: use LC_ALL instead of LC_COLLATE 2024-01-27 15:04:12 +01:00
8493800d4f fuzzing: print the diff in case of issue (#5866)
* fuzzing: print the diff in case of issue

* Simplify the code

* fuzz: remove unused import similar::ChangeTag

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-22 08:06:13 +01:00
Sylvestre Ledru 19e1f26e3d fuzz: with pipe, also capture stderr 2024-01-13 14:08:48 +01:00
Samuel Tardieu 4343ba6695 fuzz: fix file descriptor leak 2024-01-05 11:04:16 +01:00
Samuel Tardieu c23dbd3166 fuzz: reset the exit code global variable after every test 2024-01-04 19:07:24 +01:00
d07a2f0d86 Add new fuzzers: cut, sort, split and wc (#5760)
* fuzz: use thread to bypass the limitation of output

Closes: #5724

many thanks to @samueltardieu

* fuzz: enable seq as the stalled issue is fixed

* fuzz: add 4 more fuzzers

* fuzz: enable the 4 new fuzzers in the CI

* remove old import

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

* remove comment

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

* remove comment

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

* add more flags

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

* add space

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

* add a comment about sort local

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

* wrong copy/paste

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

* fuzz: import "std::env"

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-04 13:40:47 +01:00