meta data for this page
  •  

This is an old revision of the document!


Ceedling

  • support files - additional C files needed for tests but not for project (not added to project src).

add .c file

When ceedling fails to pickup automatically .c file it can be added to given test by

TEST_FILE("source_file_to_compile.c")

cross includes

Also ceedling cannot automatically pick .c files when included .h file depends on another .h file. All dependant includes needs to be added manually in test .c file.

enable valgrind

:tools:
  :pre_test_fixture_execute:
    :executable: valgrind
    :arguments:
      - --track-origins=yes
      - --leak-check=full
      - --show-leak-kinds=all
      - --errors-for-leak-kinds=all
      - --error-exitcode=10
      - ${1}
:plugins:
  :enabled:
    - command_hooks