Have google tests share reference data

I want to write tests for the NBNxM kernels. These will have a large amount of reference data, in particular forces. Can tests that should produce the same output, e.g. different kernel layouts or difference Ewald approximations, share the same reference data?
There will be a large combination of parameters taken from lists, which ideally I would like to set up with Combine(). Then for some of these parameters the reference data should be shared between all values.

Mark found an answer: gmx::test::TestReferenceData has a constructor when one can pass a name. This is actually already used by some tests.

1 Like