Hi,
is there any way to set test filters based on a std.Build.Step.Run step? std.Build.addTest only supports passing filters as a [] const []const u8.
Context:
I want to run some microbenchmarks, which are defined in tests similar to .
To discover which tests are benchmarks I run them in debug mode with a custom test runner which reports this (very similar to how fuzz tests are detected in std). Here I also run them once to detect any safety checked IB I run into.
I then recompile my tests with -O ReleaseFast and run them with another custom test runner that handles the actual benchmarking stuff. Currently, that test runner filters (at runtime) that only benchmark tests are run.
What I want is to pass the discovered tests as a filter during recompiling. This would make the logic of my test runner simpler and also would lead to faster compile times (Only benchmarks are compiled with ReleaseFast).