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

Skip performance tests using a CMake variable #278

Merged
merged 1 commit into from
Sep 9, 2020
Merged

Conversation

cottsay
Copy link
Contributor

@cottsay cottsay commented Sep 8, 2020

These tests can be fairly heavy, so we don't want to run them by default. It would be better if there was a way to skip the tests by default in such a way that they could be specifically un-skipped at runtime, but I can't find a mechanism in CMake or CTest that would allow us to achieve that behavior without leveraging environment variables.

These tests can be fairly heavy, so we don't want to run them by
default. It would be better if there was a way to skip the tests by
default in such a way that they could be specifically un-skipped at
runtime, but I can't find a mechanism in CMake or CTest that would allow
us to achieve that behavior without leveraging environment variables.

Signed-off-by: Scott K Logan <logans@cottsay.net>
Copy link
Contributor

@brawner brawner left a comment

Choose a reason for hiding this comment

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

This seems like a good approach to me

@cottsay cottsay merged commit 05c0259 into master Sep 9, 2020
@delete-merged-branch delete-merged-branch bot deleted the disable_perf_tests branch September 9, 2020 22:55
@dirk-thomas
Copy link
Contributor

This patch only checks for a variable but doesn't declare it anywhere. This makes it completely opaque and not introspectable (as I mentioned before in an offline thread). Therefore I think this should be exposed as a CMake option().

ahcorde pushed a commit that referenced this pull request Oct 2, 2020
These tests can be fairly heavy, so we don't want to run them by
default. It would be better if there was a way to skip the tests by
default in such a way that they could be specifically un-skipped at
runtime, but I can't find a mechanism in CMake or CTest that would allow
us to achieve that behavior without leveraging environment variables.

Signed-off-by: Scott K Logan <logans@cottsay.net>
ahcorde pushed a commit that referenced this pull request Oct 6, 2020
These tests can be fairly heavy, so we don't want to run them by
default. It would be better if there was a way to skip the tests by
default in such a way that they could be specifically un-skipped at
runtime, but I can't find a mechanism in CMake or CTest that would allow
us to achieve that behavior without leveraging environment variables.

Signed-off-by: Scott K Logan <logans@cottsay.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants