Can't get unit test to work with IDF 4.0

User avatar
dmdamen
Posts: 15
Joined: Sun Aug 19, 2018 2:47 pm

Can't get unit test to work with IDF 4.0

Postby dmdamen » Sun Feb 02, 2020 9:03 pm

Hi,

I want to code in C++ using Visual Studio Code. I am able to compile and run my C++ code including a simple component.

Now I want to unit test my component. However, I can't get the unit tests to work. I'm getting the following errors when I try to compile the test app.

Code: Select all

[806/965] Generating test_tjpgd_logo.h
FAILED: esp-idf/esp32_test/test_tjpgd_logo.h
and

Code: Select all

'xxd' is not recognized as an internal or external command,
operable program or batch file.
Anybody seen this before?

ESP_Sprite
Posts: 9724
Joined: Thu Nov 26, 2015 4:08 am

Re: Can't get unit test to work with IDF 4.0

Postby ESP_Sprite » Mon Feb 03, 2020 9:38 am

You need an extra helper tool called 'xxd', which is used to convert the jpeg image into something that can be embedded in the binary.

User avatar
dmdamen
Posts: 15
Joined: Sun Aug 19, 2018 2:47 pm

Re: Can't get unit test to work with IDF 4.0

Postby dmdamen » Mon Feb 03, 2020 5:53 pm

Thank you.

I need it for Windows. Is it part of some toolset? I found one but I need Cygwin for that. Will that work?

ESP_Sprite
Posts: 9724
Joined: Thu Nov 26, 2015 4:08 am

Re: Can't get unit test to work with IDF 4.0

Postby ESP_Sprite » Tue Feb 04, 2020 10:01 am

No clue, but it may be easier to just disable that specific unit test somehow, it's pretty old and tests ROM code that is well-proven by now.

Who is online

Users browsing this forum: No registered users and 212 guests