[RF] Group together many small tests in one executable #20937
+159
−183
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Building RooFit during development feels a bit sluggish, even with
ccacheon. That is because lots of time is spent in linking many smalltest executables, which
ccachedoesn't make faster.This can be improved by grouping some tests execuables in RooFitCore and
RooFit, suggested in this commit.
Some comparisons (for a build with
roofit_multiprocess=OFF):With a hot cache, building
roofit/rooficore/testandroofit/roofit/testafter deleting these directories takes 10seconds instead of 30 on a single core with my Clang setup.
The number of tests in the same two directories is reduced from 76
to 21
The time it takes to run all tests in the same directories on a
single core reduces from 48 to 34 seconds
The new bundles tests are still relatively small:
In case of a failure on the CI, it will still be easy to see which
test failed exactly, because the combined logs are still clean and
not overwhelming (the longest is
testVectorizedPDFswith 909lines)