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

Re: [PATCH] t/meson.build: fix up tests for 'seen' branch

From
Eli Schwartz <eschwartz93@gmail.com>
Date
Oct 22, 2024, 01:38 UTC
Message-ID
<9820a7a6-c9c0-44eb-9c04-9445a5061c14@gmail.com>
In-Reply-To
<ZxbEJbigarbklNJq@nand.local>
On 10/21/24 5:14 PM, Taylor Blau wrote:
Show 18 quoted lines
> On Mon, Oct 21, 2024 at 08:04:16AM +0200, Patrick Steinhardt wrote:
>> For our integration-style tests I'd be okay with not listing the files
>> individually, such that we instead use e.g. prove(1) to run all tests
>> via a single test target. It would be a regression in functionality as
>> we now cannot easily run e.g. "meson test t0000*", but at least we would
>> not have to maintain the list of test scripts anymore.
> 
> I quite like the ability to run tNNNN-*.sh individually when spelled
> like that (i.e. including the test number, but not the full script
> name).
> 
> I find that for the areas that I have worked on most over the years that
> I have the relevant test numbers committed by heart, but often don't
> know the full script name. So it is nice to be able to refer to them by
> number only.
> 
> Am I reading it write that this suggests that Meson would lose that
> ability?

If "meson test" simply ran the prove(1) utility then it would still be possible to do:

``` meson test --test-args "--args --to --prove" ```

This would not actually do what you want, since prove(1) doesn't implement "t0000*" style globbing, does it?

So your reading is correct -- meson's own globbing support relies on meson knowing the list of all test names, which means you do have to maintain that list somehow (and have that list update when you do "git pull" and new tests materialize).

-- 
Eli Schwartz
Previous: Taylor Blau
Message 4 of 4 in “t/meson.build: fix up tests for 'seen' branch”
  1. t/meson.build: fix up tests for 'seen' branchRamsay Jones, Oct 20, 2024
  2. Patrick SteinhardtOct 21, 2024
  3. Taylor BlauOct 21, 2024
  4. Eli SchwartzOct 22, 2024

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.