-
-
Notifications
You must be signed in to change notification settings - Fork 261
Open
Description
When upgrading to Ceedling 1.0.0, i recognized some strange behavior in the Ceedling :defines: config section. There are two ways to specify definies that apply to all the test files:
:defines:
:test:
- UNIT_TEST
- CONFIG_IDF_TARGET_LINUX
and 2)
:defines:
:test:
:*:
- UNIT_TEST
- CONFIG_IDF_TARGET_LINUX
I additionally have a mixin, just specifying some additional variables for single tests:
:defines:
:test:
:test_DBC_single_lookup_table:
- UNIT_TEST_DBC_SINGLE_LT
:test_DBC_idx_val_lookup_table:
- UNIT_TEST_DBC_IDX_VAL_LT
:test_DBC_idx_format_lookup_table:
- UNIT_TEST_DBC_IDX_FORMAT_LT
The problem is, when using variant 1), the specific defines of the mixins do not apply. Ceedling does ignore them without any warning. Everything works as expected, when using variant 2).
I think the best thing would be, to remove variant 1) completely. If that breaks to much existing configs, at least a warning would necessary to warn the users about this behavior.
Metadata
Metadata
Assignees
Type
Projects
Status
Backlog
Status
Backlog