|
|
4 лет назад | |
|---|---|---|
| .. | ||
| main | 4 лет назад | |
| CMakeLists.txt | 4 лет назад | |
| README.md | 4 лет назад | |
| sdkconfig.defaults | 4 лет назад | |
| Supported Targets | Linux |
|---|
This unit test tests basic functionality of the ESPTimer class. The test does not use mocks. Instead, it runs the whole implementation of the component on the Linux host. The test framework is CATCH.
This application has been tested on Ubuntu 20.04 with gcc version 9.3.0.
First, make sure that the target is set to Linux. Run idf.py --preview set-target linux if you are not sure. Then do a normal IDF build: idf.py build.
IDF monitor doesn't work yet for Linux. You have to run the app manually:
build/test_esp_timer_cxx_host.elf
Ideally, all tests pass, which is indicated by "All tests passed" in the last line:
$ build/test_esp_timer_cxx_host.elf
===============================================================================
All tests passed (9 assertions in 11 test cases)