Skip to content

fix: Enable C++ unit tests for macOS release builds#16

Merged
jrosskopf merged 3 commits intomainfrom
fix/macos-test-enablement
Apr 3, 2026
Merged

fix: Enable C++ unit tests for macOS release builds#16
jrosskopf merged 3 commits intomainfrom
fix/macos-test-enablement

Conversation

@jrosskopf
Copy link
Copy Markdown
Contributor

Summary

  • Remove Debug-only restriction that prevented tests from running on macOS release builds
  • Aligns macOS behavior with Linux where tests run for all build configurations
  • make test now correctly discovers and runs all 397 unit tests on macOS

Background

The CMakeLists.txt had a condition that only added the test subdirectory for Debug builds on macOS. This caused make test (which depends on the release build) to report "No tests were found!!!" while Linux worked correctly.

Test plan

  • Verified make test runs all 397 tests on macOS (arm64)
  • All tests pass

- Remove Debug-only restriction for test builds on macOS
- Tests now run in both Debug and Release configurations
- Aligns macOS behavior with Linux where tests run for all build types
- Only cross-compilation still skips tests (can't execute foreign binaries)
- Add build-system and tool.setuptools sections to pyproject.toml
- Set packages = [] to prevent auto-discovery of fixtures/ and api_configuration/
- Fixes CI failure: "Multiple top-level packages discovered in flat-layout"
@jrosskopf jrosskopf force-pushed the fix/macos-test-enablement branch from 95822e8 to 4a306c8 Compare April 3, 2026 07:49
… key

- CachingFileProvider::ReadFile: use emplace instead of operator[] so
  concurrent threads that both miss the cache don't double-count
  current_entries (fixes test_vfs_cache concurrent reads on macOS)
- test/integration/pyproject.toml: remove duplicate [tool.setuptools]
  section introduced by rebase (caused uv TOML parse error in CI)
@jrosskopf jrosskopf merged commit add20ca into main Apr 3, 2026
13 checks passed
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.

1 participant