README.md
1| Supported Targets | Linux |
2| ----------------- | ----- |
3
4# Simplest rom test on Linux target
5
6This unit test tests only if some of the supplied Linux functions seem to work correctly. The test framework is CATCH.
7
8## Requirements
9
10* A Linux system
11* The usual IDF requirements for Linux system, as described in the [Getting Started Guides](../../../../docs/en/get-started/index.rst).
12* The host's gcc/g++
13
14This application has been tested on Ubuntu 20.04 with `gcc` version *9.3.0*.
15
16## Build
17
18First, 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`.
19
20## Run
21
22IDF monitor doesn't work yet for Linux. You have to run the app manually:
23
24```bash
25./build/test_rom_host.elf
26```
27
28## Example Output
29
30Ideally, all tests pass, which is indicated by "All tests passed" in the last line:
31
32```bash
33$ ./build/test_rom_host.elf
34test
35===============================================================================
36All tests passed (8 assertions in 6 test cases)
37```
38