Skip to content

Commit

Permalink
tests: boards: espressif: add esp32s3 to cache coex test
Browse files Browse the repository at this point in the history
Test esp32s3 for cache coexistence. Update test documentation.

Signed-off-by: Lucas Tamborrino <[email protected]>
  • Loading branch information
LucasTambor committed Jul 25, 2023
1 parent 2dfaa09 commit 33be1f9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 18 deletions.
46 changes: 29 additions & 17 deletions tests/boards/espressif_esp32/cache_coex/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,44 @@ with a random generated pattern. At the same time, a whole SPI Flash page is upd
value. By the end of the thread iterations, both PSRAM and SPI Flash have its contents compared against
expected values to check for integrity.

Supported Boards
****************
- esp32
- esp32s2_saola
- esp32s3_devkitm

Building and Running
********************

Make sure you have the ESP32 DevKitC connected over USB port.
Make sure you have the target connected over USB port.

.. code-block:: console
west build -b esp32_devkitc_wrover tests/boards/espressif_esp32/cache_coex
west flash --esp-device /dev/ttyUSB0
west build -b <board> tests/boards/espressif_esp32/cache_coex
west flash && west espressif monitor
Sample Output
=============

To check output of this test, any serial console program can be used (i.e. on Linux picocom, putty, screen, etc).
This test uses ``minicom`` on the serial port ``/dev/ttyUS0``. The following lines indicate a successful test:

.. code-block:: console
Running test suite cache_coex_test
===================================================================
START - flash_integrity_test
PASS - flash_integrity_test in 0.1 seconds
===================================================================
START - ram_integrity_test
PASS - ram_integrity_test in 0.1 seconds
===================================================================
Test suite cache_coex_test succeeded
===================================================================
PROJECT EXECUTION SUCCESSFUL
Running TESTSUITE cache_coex
===================================================================
START - test_flash_integrity
PASS - test_flash_integrity in 0.001 seconds
===================================================================
START - test_ram_integrity
PASS - test_ram_integrity in 0.001 seconds
===================================================================
START - test_using_spiram
PASS - test_using_spiram in 0.001 seconds
===================================================================
TESTSUITE cache_coex succeeded
------ TESTSUITE SUMMARY START ------
SUITE PASS - 100.00% [cache_coex]: pass = 3, fail = 0, skip = 0, total = 3 duration = 0.003 seconds
- PASS - [cache_coex.test_flash_integrity] duration = 0.001 seconds
- PASS - [cache_coex.test_ram_integrity] duration = 0.001 seconds
- PASS - [cache_coex.test_using_spiram] duration = 0.001 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
PROJECT EXECUTION SUCCESSFUL
5 changes: 4 additions & 1 deletion tests/boards/espressif_esp32/cache_coex/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
tests:
boards.esp32.cache_coex:
platform_allow: esp32_devkitc_wrover esp32s2_saola
platform_allow:
- esp32
- esp32s2_saola
- esp32s3_devkitm
tags:
- spiram
- spiflash
Expand Down

0 comments on commit 33be1f9

Please sign in to comment.