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

Re: [PATCH 1/4] t/unit-tests: handle dashes in test suite filenames

From
Patrick Steinhardt <ps@pks.im>
Date
Jan 16, 2025, 13:12 UTC
Message-ID
<Z4kFwynV3sQ5Plm8@pks.im>
In-Reply-To
<20250116104911.77405-2-kuforiji98@gmail.com>
On Thu, Jan 16, 2025 at 11:49:08AM +0100, Seyi Kuforiji wrote:
Show 5 quoted lines
> Adapt script to translate dashes (`-`) in test suite filenames to
> underscores (`_`) to ensure proper extraction of test function names.
> `generate-clar-decls.sh` does not pick up dashes in filenames such as
> `u-mem-pool.c`, which prevents the scripts from being run. This will be
> used by subsequent commits which follows the same construct.
Nit: it would be nice to provide a bit more context. What might not be
immediately be obvious is that the script extracts function signatures
that match a specific pattern derived from the unit test file's name,
so pointing that out would likely help.

Also note that "u-mem-pool.c" is not a script, so saying that these are getting run as scripts is misleading. I'd rather say something like "which prevents the unit tests declared in those suites from being executed".

The change itself looks good to me!
Patrick
Previous: Seyi KuforijiNext: Seyi Kuforiji
Message 3 of 24 in “t/unit-tests: convert unit-tests to use clar”
  1. 0/4 t/unit-tests: convert unit-tests to use clarSeyi Kuforiji, Jan 16, 2025
  2. 1/4 t/unit-tests: handle dashes in test suite filenamesSeyi Kuforiji, Jan 16, 2025
  3. Patrick SteinhardtJan 16, 2025
  4. 2/4 t/unit-tests: convert mem-pool test to use clar test frameworkSeyi Kuforiji, Jan 16, 2025
  5. Patrick SteinhardtJan 16, 2025
  6. Junio C HamanoJan 16, 2025
  7. 3/4 t/unit-tests: adapt priority queue test to use clar test frameworkSeyi Kuforiji, Jan 16, 2025
  8. Patrick SteinhardtJan 16, 2025
  9. 4/4 t/unit-tests: convert reftable tree test to use clar test frameworkSeyi Kuforiji, Jan 16, 2025
  10. 0/4 t/unit-tests: convert unit-tests to use clarSeyi Kuforiji, Jan 16, 2025
  11. 1/4 t/unit-tests: handle dashes in test suite filenamesSeyi Kuforiji, Jan 16, 2025
  12. Patrick SteinhardtJan 17, 2025
  13. 2/4 t/unit-tests: convert mem-pool test to use clar test frameworkSeyi Kuforiji, Jan 16, 2025
  14. 3/4 t/unit-tests: adapt priority queue test to use clar test frameworkSeyi Kuforiji, Jan 16, 2025
  15. 4/4 t/unit-tests: convert reftable tree test to use clar test frameworkSeyi Kuforiji, Jan 16, 2025
  16. Patrick SteinhardtJan 17, 2025
  17. t/unit-tests: convert unit-tests to use clarSeyi Kuforiji, Jan 17, 2025
  18. 1/4 t/unit-tests: handle dashes in test suite filenamesSeyi Kuforiji, Jan 17, 2025
  19. 2/4 t/unit-tests: convert mem-pool test to use clar test frameworkSeyi Kuforiji, Jan 17, 2025
  20. Karthik NayakJan 20, 2025
  21. 3/4 t/unit-tests: adapt priority queue test to use clar test frameworkSeyi Kuforiji, Jan 17, 2025
  22. Karthik NayakJan 20, 2025
  23. 4/4 t/unit-tests: convert reftable tree test to use clar test frameworkSeyi Kuforiji, Jan 17, 2025
  24. Patrick SteinhardtJan 17, 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.