Ivan Grokhotkov cef0744299 Merge branch 'bugfix/linux_target_gen_partition_table' into 'master' 3 jaren geleden
..
main 3602d332c4 log: support ESP_LOG_BUFFER* functions for Linux target 3 jaren geleden
CMakeLists.txt facab8c5a7 tools: Increase the minimal supported CMake version to 3.16 3 jaren geleden
README.md e7540dbe0e docs: remove the outdated "IDF monitor doesn't work on linux" notes 3 jaren geleden
pytest_log_linux.py b02687a6c4 test: migrate linux target host test jobs into pytest-embedded 3 jaren geleden
sdkconfig.defaults 44aa3c3a7f bugfix(esp_rom): Fixed writable string issue on Linux implementation 3 jaren geleden

README.md

Supported Targets Linux

Simple log test on Linux target

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).

Requirements

  • A Linux system
  • The usual IDF requirements for Linux system, as described in the Getting Started Guides.
  • The host's gcc/g++

This application has been tested on Ubuntu 20.04 with gcc version 9.3.0.

Build

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.

Run

idf.py monitor

Example Output

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)