Host-based testing on Linux platform

felixeriksson
Posts: 2
Joined: Mon Sep 11, 2023 12:46 pm

Host-based testing on Linux platform

Postby felixeriksson » Mon Sep 11, 2023 12:50 pm

Hello, I have been building unit tests that I could run on a Linux machine (using WSL). I've used esp-idf version 5.0.x and it has been a useful feature to me.

However, I just upgraded to 5.1.1, and I can't run the tests anymore, and I see that the documentation for host-based tests is gone for version 5.1. I can't find any info about it in the release notes. Has this feature been removed?

ESP_rrtandler
Posts: 23
Joined: Wed May 31, 2023 6:54 pm

Re: Host-based testing on Linux platform

Postby ESP_rrtandler » Fri Sep 15, 2023 7:50 am

Hi @felixeriksson,

The host testing feature is still present in IDF 5.1.x
Could you share more details, how did you run your host based tests in version 5.0.x and what error messages are you getting now ?

You can look at host tests in some of idf component folders. Provided your current folder is esp_idf root folder (the folder where you see subfolders like components, examples...) execute:

Code: Select all

./install.sh
. ./export.sh
cd components/nvs_flash/host_test/nvs_page_test
idf.py --preview set-target linux
idf.py build
Then you should be able to run the generated host test

Code: Select all

./build/test_nvs_page_host.elf

felixeriksson
Posts: 2
Joined: Mon Sep 11, 2023 12:46 pm

Re: Host-based testing on Linux platform

Postby felixeriksson » Mon Oct 16, 2023 2:06 pm

Hello @ESP_rrtandler and thanks for your reply!
I found that the documentation page had just been rearranged and renamed: https://docs.espressif.com/projects/esp ... -apps.html
I resolved the problems with my tests.

Who is online

Users browsing this forum: No registered users and 90 guests