Ceedling: ceedling test:all fails because it can't find unity.cpp

I am trying to setup a trial project to compile c++ files with extension .cpp.

I added the follwing to the project.yml file:

:extensions:
  :source: .cpp

:tools:
  :release_compiler:
  ...

This works fine. I can create the programs executable.

The problem starts when running this command: ceedling test:all

This is an excerpt of the error message:

Test 'test_myLib.cpp'
---------------------
Compiling test_myLib_runner.cpp...
Compiling test_myLib.cpp...
ERROR: Found no file 'unity.cpp' in search paths.
rake aborted!

Ceedling is looking for a unity.cpp. I found a file unity.c when searching the project directory structure.

Why is ceedling searching for unity.cpp instead of unity.c? Because of the :extensions:source: option in the project.yml file? How can I correct this?

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

under normal circumstances, the answer would be yes. But it appears something is broken with this feature at the moment and I’m going to have to dig into it. I’d like to use this opportunity to support passing in a list of acceptable extensions so that they can be compiled properly instead of forcing the user to choose one.