bl_iot_sdk/components/3rdparty/aws-iot/aws-iot-device-sdk-embedded-C/tests/unit
2022-03-07 13:59:29 +08:00
..
include bouffalolab_release_bl_iot_sdk_1.6.36 2022-03-07 13:59:29 +08:00
src bouffalolab_release_bl_iot_sdk_1.6.36 2022-03-07 13:59:29 +08:00
tls_mock bouffalolab_release_bl_iot_sdk_1.6.36 2022-03-07 13:59:29 +08:00
README.md bouffalolab_release_bl_iot_sdk_1.6.36 2022-03-07 13:59:29 +08:00

Unit Tests

This folder contains unit tests to verify Embedded C SDK functionality. These have been tested to work with Linux using CppUTest as the testing framework. CppUTest is not provided along with this code. It needs to be separately downloaded. These tests have been verified to work with CppUTest v3.6, which can be found here. Each test contains a comment describing what is being tested. The Tests can be run using the Makefile provided in the root folder for the SDK. There are a total of 187 tests.

To run these tests, follow the below steps:

  • Copy the code for CppUTest v3.6 from github to external_libs/CppUTest
  • Navigate to SDK Root folder
  • run make run-unit-tests

This will run all unit tests and generate coverage report in the build_output folder. The report can be viewed by opening <SDK_Root>/build_output/generated-coverage/index.html in a browser.