esp-idf/components/esp_rom/host_test/rom_test
Djordje Nedic facab8c5a7 tools: Increase the minimal supported CMake version to 3.16
This updates the minimal supported version of CMake to 3.16, which in turn enables us to use more CMake features and have a cleaner build system.
This is the version that provides most new features and also the one we use in our latest docker image for CI.
2022-06-01 06:35:02 +00: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
README.md [esp_rom]: Partially buildable for linux 2021-08-03 12:03:24 +08:00
sdkconfig.defaults [build system]: Fixed common requirement for Linux 2021-08-13 16:50:29 +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 monitor doesn't work yet for Linux. You have to run the app manually:

./build/test_rom_host.elf

Example Output

Ideally, all tests pass, which is indicated by "All tests passed" in the last line:

$ ./build/test_rom_host.elf 
test
===============================================================================
All tests passed (8 assertions in 6 test cases)