Currently, doing a full debug build with ASAN and all GTests has become a real pain, as (on my machine, which does have 16GB RAM and a SSD), it can take over 10 minutes to link the four executables (Blender itself, and the three gtests that are also linking most of Blender's library).
While adding more RAM is always an answer (although not always possible in practice), I think we should stop making such 'need everything' tests as independent binaries.
I can see at least two ways to avoid such thing:
- Do what we already do a lot: use python API and simple python scripts.
- Integrate those tests that absolutely require to be written in C as part of Blender build itself (behind the right #ifdef of course).
I would expect that #1 would be enough, maybe with a little bit of #2 in the form of having some part of the RNA/Py API hidden behind the GTEST define, to only actually expose them when needed (if we really need C code for performance and/or low-level access reasons).