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?
Host-based testing on Linux platform
-
- Posts: 23
- Joined: Wed May 31, 2023 6:54 pm
Re: Host-based testing on Linux platform
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:
Then you should be able to run the generated host test
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
Code: Select all
./build/test_nvs_page_host.elf
-
- Posts: 2
- Joined: Mon Sep 11, 2023 12:46 pm
Re: Host-based testing on Linux platform
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.
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: rsimpsonbusa and 91 guests