Skip to content

test: integrate compile_flags tests into the skylib test - #318

Open
furtib wants to merge 2 commits into
Ericsson:mainfrom
furtib:remove-compile-flags
Open

test: integrate compile_flags tests into the skylib test#318
furtib wants to merge 2 commits into
Ericsson:mainfrom
furtib:remove-compile-flags

Conversation

@furtib

@furtib furtib commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Why:
We want to integrate all of our tests into Bazel. The unit test macro is unnecessarily bulky for tests written in compile_flags; they can be checked much more easily and quickly using Skylib tests.

What:

  • removed compile_flags test
  • Added conly and cxxonly flag tests to the Skylib tests

Addresses:
#210

@furtib
furtib requested a review from Szelethus August 27, 2026 09:13
@furtib furtib self-assigned this Aug 27, 2026
@furtib furtib added the test ☑️ Adding or refactoring tests label Aug 27, 2026

@Szelethus Szelethus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why not combine the 4 tests into two? For the *.c file, assert that __CXX__ is absent and __CONLY__ is present, and likewise for *.cc. That would be more expressive as well IMO.

@furtib
furtib requested a review from Szelethus August 27, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test ☑️ Adding or refactoring tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants