esp-idf/components/esp_rom/host_test/rom_test
Ivan Grokhotkov cef0744299 Merge branch 'bugfix/linux_target_gen_partition_table' into 'master'
multiple fixes for linux target

Closes IDF-6641

See merge request espressif/esp-idf!21993
2023-01-18 11:57:08 +08:00
..
main [esp_rom]: Partially buildable for linux 2021-08-03 12:03:24 +08:00
CMakeLists.txt tools: Increase the minimal supported CMake version to 3.16 2022-06-01 06:35:02 +00:00
pytest_esp_rom_linux.py test: migrate linux target host test jobs into pytest-embedded 2023-01-16 10:25:55 +08:00
README.md docs: remove the outdated "IDF monitor doesn't work on linux" notes 2023-01-13 08:14:56 +01:00
sdkconfig.defaults bugfix(esp_rom): Fixed writable string issue on Linux implementation 2022-11-03 11:45:19 +01:00

Supported Targets Linux

Simplest rom test on Linux target

This unit test tests only if some of the supplied Linux functions seem to work correctly. The test framework is CATCH.

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
test
===============================================================================
All tests passed (8 assertions in 6 test cases)