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.

Unit Testing Framework?



Is there a unit testing framework that TI or its customers use to write and run unit tests for DSP/BIOS C2000 applications?  I'm looking for a framework that's capable of running either emulated or on hardware that can stub out and test modules of code.

  • Kaveh,

    Are you using Code Composer Studio?  If so I'm going to ask an admin to move this to the CCS forum.  There are ways to script load/run programs in CCS.

    I don't quite understand what you mean by "can stub out and test modules of code".  Typically a unit test is written to test a particular module.  In this context, I don't understand what you mean by "stub out".

    Judah

  • If I 'stub out' a function, that means I will identify it's inputs/outputs, any globals it uses, and any macros and other functions it uses.  I would then place hardcoded values for those.

    Tessy (http://www.hitex.com/index.php?id=172) is one such tool that does this.  I'm just curious what TI recommends and what TI customers have used.  I would like to use this to write unit tests and regression test code written for TI DSPs.

  • Kaveh,

    Debug Server Scripting is what we provide and recommend that customers use for regression/unit testing their applications running on our devices. It is basically a collection of JAVA APIs to communicate directly with the CCS debugger via a script

    http://processors.wiki.ti.com/index.php/Debug_Server_Scripting

    Kaveh Vaghefi said:
    If I 'stub out' a function, that means I will identify it's inputs/outputs, any globals it uses, and any macros and other functions it uses.  I would then place hardcoded values for those.

    This is not supported by DSS however. As mentioned, it is more a list of APIs than an actual framework

    Thanks

    ki

  • Are there any 3rd party programs or frameworks that you or anyone at TI can refer me to that would allow such functionality either in an emulated environment or on the target device?