how to split ceedling test code in multiple test files linked together at build time #972
Replies: 1 comment
-
Hi. The problem here is that you haven't told Ceedling that you need it to include If you've created a standard set of test support functions, by convention, most people put these in the Once there, you simply can Between the two tweaks above, it should work as intended. :) Best of luck! |
Beta Was this translation helpful? Give feedback.
-
I have the following
test/test_foo.c
test/test_fii.c
test/test_faa.c
test/utility.c
test/utility.h
All those tests have some code in common that I have refactored into a utility.c file.
I created header files that I included in the individual test files.
The problem is that when I run the tests the symbols are undefined, the linker does not link the two object togethers.
Here is my yml conf
:paths:
:test:
- +:test/**
- -:test/support
:source:
- ../../src/**
:include:
.. my dependency for mocking
:support:
- test/support
:libraries: []
What special configuration my yaml needs to have to fix this problem?
I tried modyfying the yaml without sucess
Beta Was this translation helpful? Give feedback.
All reactions