esp-idf/components/esp_rom/test_apps/linux_rom_apis
2024-06-06 15:37:21 +03:00
..
main feat(esp_rom): Support precision attr for esp_rom_vprintf 2024-06-06 15:37:21 +03:00
CMakeLists.txt ci: move linux host tests to test app folder 2023-03-27 17:41:44 +08:00
pytest_esp_rom_linux.py ci: move linux host tests to test app folder 2023-03-27 17:41:44 +08:00
README.md ci: move linux host tests to test app folder 2023-03-27 17:41:44 +08:00
sdkconfig.defaults ci: move linux host tests to test app folder 2023-03-27 17:41:44 +08: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)