-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test linking issue #904
Comments
If you look into switching to the release candidate for Ceedling, this has already been fixed. |
mvandervoord thank you for your quick response, we will consider this upgrade |
At this point we are not able to adapt our large project to all breaking changes for version 0.32_RC. |
This isn't a feature we're considering backporting to the previous release. The entire structure of how dependency tracking and per-file compilation options changed in order to support this. |
Ok, got it. What Ruby version is recommended for 0.32_RC? |
From the release notes: |
Thanks for your answers. Probably it should be reported under another issue, but when running 0.32_RC with Ruby3.3 I have: ceedling test:my_test
<internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- constructor (LoadError)
Did you mean? ostruct
from <internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
from C:/my_project_path/ceedling/ceed_ws//vendor/ceedling/bin/ceedling:24:in `<main>'
Failed: ceedling test:my_test The same for Ruby 3.2. On Ruby 3.0 I have different issue related with vendor version: ceedling test:my_test
Loaded project configuration from environment variable `CEEDLING_PROJECT_FILE`.
> Using: C:/my_project_path/ceedling/generic.yml
> Working directory: C:/my_project_path/ceedling
EXCEPTION: Could not collect version information for vendor component: C:/workspace/gitwork/Ceedling/vendor/unity/src/unity.h
Failed: ceedling test:my_test Any suggestions how to handle these issues? Couldn't find anything interesting in Ceedling's documentation, or I checked wrong .md files. |
I think Mark wanted to you change to 1.0.0 pre-releases, not 0.32_RC. I also suggest you compare your |
Two tests are using the same mock file:
test_simple1.c:
...
#include "mock_function.c"
...
test_simple2.c:
...
#include "mock_function.c"
...
function.c id following:
#ifdef FUNCTION
void my_function() {};
#endif
These tests are using different set of defines in yml file:
...
:defines:
:test_simple1:
- *common_defines
:test_simple2
- *common_defines
- FUNCTION
...
When running these tests I have following linker issue:
...
Generating include list for mock_function.c
Creating mock for mock_function.c
Compiling mock_function.c
Linking test_simple1.elf
Running test_simple1.elf
...
Generating include list for mock_function.c
Creating mock for mock_function.c
Linking test_simple2.elf
test_simple2.o: undefined reference to `my_function_Stub'
...
When building test_simlpe2 step "Compiling mock_function.c" is missing. This causes linking issue. When running test_simple2 alone there is no linker issue.
Could not find in documentation how to enforce recompilation of all mocs for each test.
The text was updated successfully, but these errors were encountered: