|
|
3 jaren geleden | |
|---|---|---|
| .. | ||
| main | 3 jaren geleden | |
| CMakeLists.txt | 3 jaren geleden | |
| README.md | 3 jaren geleden | |
| pytest_log_linux.py | 3 jaren geleden | |
| sdkconfig.defaults | 3 jaren geleden | |
| Supported Targets | Linux |
|---|
This unit test tests basic functionality of the log component. The test does not use mocks. Instead, it runs the whole implementation of the component on the Linux host. The test framework is CATCH. For early log, we only perform a compile time test since there's nothing to test on Linux except for the log macros themselves (all the implementation will be in chip ROM).
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.py monitor
Ideally, all tests pass, which is indicated by "All tests passed" in the last line:
$ idf.py monitor
===============================================================================
All tests passed (8 assertions in 6 test cases)