-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor libfc tests into one executable #1095
Conversation
libraries/libfc/test/CMakeLists.txt
Outdated
add_subdirectory( static_variant ) | ||
add_subdirectory( variant ) | ||
add_subdirectory( variant_estimated_size ) | ||
file(GLOB UNIT_TESTS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a huge fan of file(GLOB)
since it's easy to be confused why a new .cpp file isn't being compiled. But now that we're on cmake 3.12+ we can use CONFIGURE_DEPENDS
which makes it less of a trap.
Also, I wonder about using GLOB_RECURSE
here so we don't need to specify each sub directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Just listed them explicitly which seems to be the preferred way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would have been interesting to try CONFIGURE_DEPENDS
+ GLOB_RECURSE
and see how it goes. Up to you.
In preparation of adding some new tests for #641, a bit of refactoring of
libfc
tests.Combine all tests into one executable. Combined they run in a fraction of a second.
Combining them seems in line with #586.