Skip to content
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

Merged
merged 4 commits into from
Apr 28, 2023
Merged

Refactor libfc tests into one executable #1095

merged 4 commits into from
Apr 28, 2023

Conversation

heifner
Copy link
Member

@heifner heifner commented Apr 27, 2023

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.

@heifner heifner requested review from spoonincode and greg7mdp April 27, 2023 14:11
@heifner heifner added the OCI Work exclusive to OCI team label Apr 27, 2023
@heifner heifner added this to the Leap v5.0.0-rc1 milestone Apr 27, 2023
add_subdirectory( static_variant )
add_subdirectory( variant )
add_subdirectory( variant_estimated_size )
file(GLOB UNIT_TESTS
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

@heifner heifner merged commit bbeaf98 into main Apr 28, 2023
@heifner heifner deleted the GH-641-libfc-tests branch April 28, 2023 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants