Page 1 of 1

Can't get unit test to work with IDF 4.0

Posted: Sun Feb 02, 2020 9:03 pm
by dmdamen
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?

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

Posted: Mon Feb 03, 2020 9:38 am
by ESP_Sprite
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.

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

Posted: Mon Feb 03, 2020 5:53 pm
by dmdamen
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?

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

Posted: Tue Feb 04, 2020 10:01 am
by ESP_Sprite
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.