Skip to content

Add testbuild target which builds tests without running them #2083

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

Merged
merged 1 commit into from
May 11, 2025

Conversation

Bill-Sommerfeld
Copy link
Contributor

The openindiana packaging framework includes cmake integration that lets you sensibly compare a test run with prior test results checked into the packaging repo. It works better if you can just let the system run ctest separately so the output isn't cluttered with build messages.

The only way I've found to force a build of all tests is through the check target, which also runs the tests once they're all built.

This change adds a new build target, testbuild, which builds tests without running them.
(I'm new to using cmake and just picked a plausible name; I'm open to changing it if anyone's got a better idea).

@code-gnucash-org code-gnucash-org merged commit 163d86d into Gnucash:stable May 11, 2025
4 checks passed
@jralls
Copy link
Member

jralls commented May 11, 2025

Great idea, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants