Search found 5 matches

by Bushfries
Wed Mar 27, 2019 8:42 pm
Forum: General Discussion
Topic: Unit Testing main folder
Replies: 0
Views: 1866

Unit Testing main folder

Is there any way to unit test the 'main' folder? So far I've been using the below command to start unit testing but it doesn't seem like EXTRA_COMPONENT_DIRS can be used to direct the build system to the main. Command: `make -j8 flash monitor EXTRA_COMPONENT_DIRS="~/path/to/project/components" TEST_...
by Bushfries
Mon Mar 25, 2019 5:05 pm
Forum: ESP-IDF
Topic: Unit Testing includepath
Replies: 4
Views: 5433

Re: Unit Testing includepath

I've realized what the problem is. When I do

Code: Select all

EXTRA_COMPONENT_DIRS="component"
it overwrites the default IDF_PATH components directory.

How would I go about adding multiple components via EXTRA_COMPONENT_DIRS? would it just be by using += rather than =?
by Bushfries
Fri Mar 22, 2019 8:51 pm
Forum: ESP-IDF
Topic: Unit-Test-App cant find esp_gatts_api.h
Replies: 0
Views: 1978

Unit-Test-App cant find esp_gatts_api.h

Currently I have a project that uses BLE which builds perfectly fine. However, when I try to run the included unit-test-app to test a component called "hub" it can't seem to find either esp_gatts_api.h or any other file contained in bluedroid/api/includes/api I'm running the unit testing app with: m...
by Bushfries
Fri Mar 22, 2019 5:36 pm
Forum: ESP-IDF
Topic: Unit Testing includepath
Replies: 4
Views: 5433

Re: Unit Testing includepath

Using a modified version of the unit test example with the file structure looking like this: https://i.imgur.com/eCGj6bn.png I get the following error: /Users/user/esp/esp-idf/tools/unit-test-app/build/hub_test/libhub_test.a(test_mean.o):(.literal.test_func_16+0x0): undefined reference to `testable_...
by Bushfries
Wed Mar 20, 2019 5:12 pm
Forum: ESP-IDF
Topic: Unit Testing includepath
Replies: 4
Views: 5433

Unit Testing includepath

If I have a project structure that looks like: -project +main -components -testable -test test.c Where in this project would the unit test app look for header files for the project? Currently I have all .c and .h files in project/main and would like to avoid making duplicates, if possible. From the ...