Commit Graph
34 Commits
Author SHA1 Message Date
AnthonyandGitHub 36ac85b1f3 tests: add WASI integration test support via wasmtime 2026-04-12 15:19:04 +02:00
Sylvestre Ledru 2b3b9365db echo: add multibyte unicode test cases 2026-04-03 18:57:24 +02:00
Anurag Thakur db22117957 echo: Add more tests 2026-01-07 19:47:26 +05:30
Sylvestre Ledru 3ed1f47de3 add more emoji tests 2025-09-03 22:39:21 +02:00
Daniel Hofstetter 0ce0ea04f6 echo: rename test function 2025-07-14 12:41:12 +02:00
Daniel Hofstetter 9c08dd9851 echo: show version when using --version 2025-07-14 12:31:32 +02:00
RGBCube 3ea679a29e echo: print help if not posixly corrent and only argument is --help 2025-07-12 01:37:07 +03:00
Dorian Peron 6e23d4e979 tests: patch tests to simplify imports 2025-07-01 03:36:46 +02:00
AlexanderandGitHub 7d5cfbc4b6 Merge pull request #7881 from alexs-sh/7736-control-flow-experiments
uucore/echo:handle ControlFlow result
2025-05-05 00:33:51 +02:00
13c0a813eb Remove clap for echo (#7603)
* Parsing echo flags manually without clap as clap introduced various problematic interactions with hyphens

* fixed error where multiple flags would parse wrong

* Spelling & formatting fixes

* docu for EchoFlag struct

* more extensive comment/documentation

* revert POSIXLY_CORRECT check to only check if it is set

* Fixed problem of overwriting flags. Added test for same issue

* cargo fmt

* cspell

* Update src/uu/echo/src/echo.rs

Enabling POSIXLY_CORRECT flag if value is not UTF-8

Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>

---------

Co-authored-by: Jan Verbeek <jan.verbeek@posteo.nl>
2025-05-04 20:13:52 +02:00
Dorian PéronandGitHub 61b7f4b54b Merge pull request #7598 from sylvestre/uutests2
Move our tests infra into a dedicated crate
2025-03-28 22:32:49 +01:00
Sylvestre Ledru a0179ea239 uutests: adjust the tests to use them 2025-03-28 21:40:31 +01:00
cerdelenandGitHub 8c8beb96e4 echo: fixed double hyphen as argument (#7581)
* Fixes #7558 Added check to only insert addition double hyphen if at start of arguments to correctly prepend addition hyphens for clap as well as additional test case

* additional comment

* fixes issue where flags precedes "--" as arguments
2025-03-28 13:31:48 +01:00
Daniel Hofstetter d8d635d014 echo: add support for POSIXLY_CORRECT 2025-01-06 09:51:41 +01:00
Daniel Hofstetter 90465357e2 echo: handle double hyphens 2024-12-24 17:01:45 +01:00
Daniel Hofstetter 2c2f5f14a4 echo: use succeeds() to simplify some tests 2024-12-24 16:03:00 +01:00
Daniel Hofstetter b0fa702e90 echo: remove unnecessary no_stderr() call in test 2024-10-22 14:32:20 +02:00
66f11c4ce4 echo: handle multibyte escape sequences (#6803)
* echo: handle multibyte escape sequences

Bug was reported, with root cause analysis, by kkew3
Added tests were derived from test cases provided by kkew3
See https://github.com/uutils/coreutils/issues/6741

* Use concrete type

* Fix MSRV issue

* Fix non-UTF-8 argument handling

* Fix MSRV issue

* Fix Clippy violation

* Fix compiler warning

* Address PR comments

* Add MSRV TODO comments

* echo: use stdout_only_bytes instead of stdout_is_bytes

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-10-22 11:03:08 +02:00
Terts Diepraam 1b324da436 echo: do not infer long args 2024-01-29 17:40:22 +01:00
Terts Diepraam 191eb9ac12 echo: make -e and -E override each other 2023-12-11 10:53:55 +01:00
Daniel Hofstetter c29bcb219f echo: don't output "\n" if "\c" is encountered 2023-10-03 14:37:15 +02:00
Terts Diepraam 45487d47b8 extract Base enum 2023-09-25 12:02:45 +02:00
Terts Diepraam 1ad10dd371 echo: add support for \NNN octal escape sequence 2023-08-29 21:54:19 +02:00
Terts Diepraam 4623575a66 echo: fix wrapping behavior of octal sequences 2023-08-28 23:21:39 +02:00
Sylvestre Ledru bfca6bf70f Add license headers on all files 2023-08-21 10:49:27 +02:00