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 testing exe path and benchmark main handling. #4216

Merged
merged 4 commits into from
Aug 14, 2024

Conversation

chandlerc
Copy link
Contributor

Consolidates both main libraries into //testing/base, and factors out the exe path handling for benchmarks and unit tests into a common library to remove duplication. Refactors how that logic is managed to be cleaner and avoid a confusing bool that came up in code review.

Updates all the tests and benchmarks that use these. I still need to update other benchmarks to use the same main, but I wanted to keep this PR somewhat minimal.

This also fixes a bug noticed in passing that the compilation benchmark didn't have the required dependency on the benchmark library itself, just the benchmark main library.

Consolidates both main libraries into `//testing/base`, and factors out
the exe path handling for benchmarks and unit tests into a common
library to remove duplication. Refactors how that logic is managed to be
cleaner and avoid a confusing bool that came up in code review.

Updates all the tests and benchmarks that use these. I still need to
update other benchmarks to use the same main, but I wanted to keep this
PR somewhat minimal.

This also fixes a bug noticed in passing that the compilation benchmark
didn't have the required dependency on the benchmark library itself,
just the benchmark main library.
testing/base/testing_exe_path.h Outdated Show resolved Hide resolved
testing/base/BUILD Outdated Show resolved Hide resolved
@chandlerc chandlerc requested a review from jonmeow August 14, 2024 16:49
Copy link
Contributor

@jonmeow jonmeow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per discussion, maybe global_exe_path

@chandlerc chandlerc added this pull request to the merge queue Aug 14, 2024
Merged via the queue into carbon-language:trunk with commit 72cb9d0 Aug 14, 2024
7 checks passed
@chandlerc chandlerc deleted the tidy-exe-name branch August 14, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants