我想用割让来测试STM32家族的C代码。我安装了它,如他们在GitHub Ceedling的页面上所示,并成功地运行了示例测试。
我修改了project.yml文件,因为作为源文件( path : src),头文件有不同的路径(路径:):
:paths:
:test:
- +:test/**
- -:test/support
:source:
- build/STM32F2xx_StdPeriph_Driver/include/**
- build/STM32F2xx_StdPeriph_Driver/src/**
- include/**
- src/**
:support:
- test/support
:defines:
:commmon: &common_defines
#Define for header files
- STM32F2XX
:libraries:
:placement: :end
:flag: "${1}" # or "-L ${1}" for example
:common: &common_libraries []
:test:
- *common_libraries
#toolchain of STM32F2
- build/STM32F2xx_StdPeriph_Driver/include/**
- build/STM32F2xx_StdPeriph_Driver/src/**
- build/STM32F2xx/include/但是不知怎么的,路径和库没有被识别,而我得到了未知变量的错误。
我的.yml文件出错了吗?
发布于 2019-02-06 09:16:08
对于未来的读者,我转向了cppUTest。它很容易使用,你有cpp的力量和嘲弄是非常棒的。
https://stackoverflow.com/questions/46068192
复制相似问题