Hello googletest,I'm running into cases where a gtest filter would exceed command line limits. I'd like to pass the filter from a file.
Would you be OK with the idea? I think I could send a patch for this.Paweł
--
---
You received this message because you are subscribed to the Google Groups "Google C++ Testing Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googletestframe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes, it's the length limit.The filter string can be arbitrarily long in my case.I'd like not to just increase the limit, but not to have a limit (obviously file sizes are also limited, but it's not a problem).
On Apr 16, 2015 8:20 AM, "'Samuel Benzaquen' via Google C++ Testing Framework" <googletes...@googlegroups.com> wrote:
>
> On Thu, Apr 16, 2015 at 10:39 AM, Paweł Hajdan, Jr. <phajd...@chromium.org> wrote:
>>
>> Yes, it's the length limit.
>>
>> The filter string can be arbitrarily long in my case.
>>
>> I'd like not to just increase the limit, but not to have a limit (obviously file sizes are also limited, but it's not a problem).
>
>
> It is not a bad idea.
> However, I'd rather this was implemented as a single flag to read a flag file instead of a specific flag just for the filter.
> That is, there could be --gtest_flagfile=/my/config/file that would allow specifying any flag (all flags?) through this method.
There's a standardish approach that would be @configfile instead of another flag.
Sounds fine to me.Do you have hints how to implement that with the gflags style? For example the gtest_filter flag is accessed as GTEST_FLAG(filter).
Actually it seems that gflags supports --flagfile (http://gflags.github.io/gflags/), but I'm not sure if gtest uses gflags or its own copy/modification.