Tool/software:
We are using J784s4 RTOS-SDK . We would like to do unit testing on our source code. Is there any recommended unit testing framework? Is there any guide to integrate unit testing with concerto based build system
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
We are using J784s4 RTOS-SDK . We would like to do unit testing on our source code. Is there any recommended unit testing framework? Is there any guide to integrate unit testing with concerto based build system
Hi Deepankar,
We would like to do unit testing on our source code.
Which s/w component are you talking about, and on what cores? I am assuming this is for your customer boards, correct?
The TI SDK has unit-tests for various s/w component at the respective component level, and these are all built for TI EVM. Are you expecting to re-use and adapt this test-code, or expecting to write your own test-code?
Is there any guide to integrate unit testing with concerto based build system
You mentioned concerto, so I am assuming this is all Vision Apps. The TI SDKs do build a single application firmware images that encompasses all functionalities, but different executables on the A72-side to test the corresponding unit-test.
regards
Suman
Yes, this is for our custom board. We have vision apps running on MCU1_0 and other MCU cores in the main domain. We have our code running for CAN , ethernet etc. We would like to do unit testing of the functions that we are writing. Where can i find any example unit tests which i can use as reference and extend to unit test our APIs. Further, what is your opinion on unit testing, would you recommend unit testing on the target hardware or unit testing on the host?
The expert looking into this thread (Suman) is out of office returning May 27th, so please expect a delayed response.
Thanks.
Hi Deepankar,
We have vision apps running on MCU1_0 and other MCU cores in the main domain.
Aren't you running an AutoSAR OS or the Classic AutoSAR stack on MCU1_0?
Where can i find any example unit tests which i can use as reference and extend to unit test our APIs.
This is a very broad question that I won't be able to answer properly w/o knowing what component you are modifying and for what core, and what exactly are your changes.
We have our code running for CAN , ethernet etc.
So, this is a RTOS PDK level CAN driver? For Ethernet, is this the Virtual Ethernet or a Native Ethernet stack on MCU1_0?
Where can i find any example unit tests which i can use as reference and extend to unit test our APIs.
Each of the SDK component layer like PDK drivers do have a test or an examples folder that provide the specific Unit-Tests for that driver. These would need build support for your board to be able to run these on your boards.
Further, what is your opinion on unit testing,
Unit Tests are good, and if you are Safety oriented, may be needed for providing the traceability of meeting requirements through a corresponding test.
would you recommend unit testing on the target hardware or unit testing on the host?
I don't think you can test everything on a Host machine, you need to perform these on target hardware.
Please note that this will entail you having a test automation framework to be able to flash and run different images, especially for the RTOS-side firmwares.
regards
Suman