Skip to content

build: disable BUILD_TESTING by default - #49

Merged
mrjimenez merged 1 commit into
amule-org:masterfrom
mrjimenez:worktree-issue-46
Jun 10, 2026
Merged

build: disable BUILD_TESTING by default#49
mrjimenez merged 1 commit into
amule-org:masterfrom
mrjimenez:worktree-issue-46

Conversation

@mrjimenez

@mrjimenez mrjimenez commented Jun 10, 2026

Copy link
Copy Markdown

Summary

  • Changes BUILD_TESTING default from ON to OFF in cmake/options.cmake
  • Fixes the misleading option description ("Run Tests after compile" → "Build unit tests"); the build compiles tests but does not execute them

Why no CI changes needed

The CI workflow (.github/workflows/ccpp.yml) already passes -DBUILD_TESTING=YES explicitly in cmake_common_config_flags. This flag is unaffected by the default — the CI has always been self-contained in this regard. No workflow file needed to change.

Test plan

  • Local cmake configure without flags: verify unittests/ is not built
  • Local cmake configure with -DBUILD_TESTING=ON: verify tests build and ctest passes
  • CI passes on this PR (tests continue to run via the explicit flag)

Closes #46

Most users do not need to compile the unit tests; the previous default
of ON added unnecessary compile time. Anyone developing or running the
test suite can re-enable it with -DBUILD_TESTING=ON.

Also corrects the option description from "Run Tests after compile"
(misleading — tests are compiled but not executed by the build) to
"Build unit tests".

Closes amule-project#46
@mrjimenez
mrjimenez merged commit ebc3add into amule-org:master Jun 10, 2026
10 checks passed
@mrjimenez
mrjimenez deleted the worktree-issue-46 branch June 10, 2026 01:00
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.

Disable test compilation by default

1 participant