mbox series

[v3,0/4] tools/nolibc: add testcases for vfprintf

Message ID 20230328-nolibc-printf-test-v3-0-ddc79f92efd5@weissschuh.net (mailing list archive)
Headers show
Series tools/nolibc: add testcases for vfprintf | expand

Message

Thomas Weißschuh April 2, 2023, 6:04 p.m. UTC
vfprintf() is complex and so far did not have proper tests.

This series is based on the "dev" branch of the RCU tree.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v3:
- also provide and use fflush/fclose.
- reject fileno(NULL).
- provide compatability with buffered streams from glibc.
- Link to v2: https://lore.kernel.org/r/20230328-nolibc-printf-test-v2-0-f72bdf210190@weissschuh.net

Changes in v2:
- Include <sys/mman.h> for tests.
- Implement FILE* in terms of integer pointers.
- Provide fdopen() and fileno().
- Link to v1: https://lore.kernel.org/lkml/20230328-nolibc-printf-test-v1-0-d7290ec893dd@weissschuh.net/

---
Thomas Weißschuh (4):
      tools/nolibc: add libc-test binary
      tools/nolibc: add wrapper for memfd_create
      tools/nolibc: implement fd-based FILE streams
      tools/nolibc: add testcases for vfprintf

 tools/include/nolibc/stdio.h                 | 95 ++++++++++++++++++++--------
 tools/include/nolibc/sys.h                   | 23 +++++++
 tools/testing/selftests/nolibc/.gitignore    |  1 +
 tools/testing/selftests/nolibc/Makefile      |  5 ++
 tools/testing/selftests/nolibc/nolibc-test.c | 86 +++++++++++++++++++++++++
 5 files changed, 183 insertions(+), 27 deletions(-)
---
base-commit: a63baab5f60110f3631c98b55d59066f1c68c4f7
change-id: 20230328-nolibc-printf-test-052d5abc2118

Best regards,

Comments

Willy Tarreau April 2, 2023, 6:49 p.m. UTC | #1
On Sun, Apr 02, 2023 at 06:04:33PM +0000, Thomas Weißschuh wrote:
> vfprintf() is complex and so far did not have proper tests.
> 
> This series is based on the "dev" branch of the RCU tree.

So just to confirm, it's all good, thank you very much. I've passed it
to Paul.

Have a nice end of week-end ;-)
Willy