示例编译运行 下载源代码 git clone https://github.com/aws/aws-iot-device-sdk-embedded-C.git -b release 编译源代码之前,需要安装CppUTest aws-iot-device-sdk-embedded-C/external_libs/mbedTLS https://tls.mbed.org/download/start/mbedtls-2.11.0-apache.tgz cpputest 解压源码复制到aws-iot-device-sdk-embedded-C/external_libs/CppUTest https://github.com/cpputest/cpputest/releases
为了进一步帮助执行测试,请考虑使用某个单元测试库,如Google Test[83]、Catch[84]、CppUTest[85]或Boost.Test[86],以帮助组织测试。 Google Test: https://github.com/google/googletest [84] Catch: https://github.com/philsquared/Catch [85] CppUTest : https://github.com/cpputest/cpputest [86] Boost.Test: http://www.boost.org/doc/libs/release/libs/test
有很多C++测试框架,如Catch, Boost.Test, UnitTest++, lest, bandit, igloo, xUnit++, CppTest, CppUnit, CxxTest, cpputest
持续集成实践 ①自动化测试框架: 硬件在环测试(HIL):通过CANoe模拟ECU信号输入 单元测试:CppUTest验证驱动函数 ②代码质量管理: # 静态检查示例 cppcheck --
libdnet-dev libdumbnet-dev bison flex liblzma-dev openssl libssl-dev pkg-config libhwloc-dev cmake cpputest
C和C++单元测试框架CppUTest的主要贡献者之一。嵌入式系统大会和敏捷大会的演讲人。Agile Manifesto的初始作者之一。 “保持学习。我62岁了还在编程,我喜欢编程。
cpputest csUnit (.Net) CUnit DUnit (Delphi) DBFit DBUnit DocTest (Python) Googletest HTMLUnit HTTPUnit
cortexa9_0/lib/asm_vectors.o ps7_cortexa9_0/lib/boot.o ps7_cortexa9_0/lib/close.o ps7_cortexa9_0/lib/cpputest_time.o
CppUTest: C/C++的单元测试和模拟框架。 CUTE: 更容易的C++单元测试。 CMocka: 支持模拟对象的C单元测试框架。 CppUnit: 由JUnit移植过来的C++测试框架。