git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] t/unit-tests: convert unit-tests to use clar

From
Seyi Kuforiji <kuforiji98@gmail.com>
Date
Mar 4, 2025, 11:33 UTC
Message-ID
<20250304113323.10564-1-kuforiji98@gmail.com>
Hello,

This small patch series transitions a couple more of our existing unit test files to the Clar testing framework. This change is part of our ongoing effort to standardize our testing framework to enhance maintainability.

Thanks Seyi

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Pillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com>
Seyi Kuforiji (2):
  t/unit-tests: convert trailer test to use clar
  t/unit-tests: convert urlmatch-normalization test to clar
 Makefile                                      |   4 +-
 t/meson.build                                 |   4 +-
 t/unit-tests/t-trailer.c                      | 317 -----------------
 t/unit-tests/u-trailer.c                      | 320 ++++++++++++++++++
 ...alization.c => u-urlmatch-normalization.c} |  60 +---
 5 files changed, 342 insertions(+), 363 deletions(-)
 delete mode 100644 t/unit-tests/t-trailer.c
 create mode 100644 t/unit-tests/u-trailer.c
 rename t/unit-tests/{t-urlmatch-normalization.c => u-urlmatch-normalization.c} (84%)
-- 
2.47.0.86.g15030f9556
Next: Seyi Kuforiji
Message 1 of 4 in “t/unit-tests: convert unit-tests to use clar”
  1. 0/2 t/unit-tests: convert unit-tests to use clarSeyi Kuforiji, Mar 4, 2025
  2. 1/2 t/unit-tests: convert trailer test to use clarSeyi Kuforiji, Mar 4, 2025
  3. Junio C HamanoMar 4, 2025
  4. 2/2 t/unit-tests: convert urlmatch-normalization test to clarSeyi Kuforiji, Mar 4, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.