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.

CxxTest - problems on Windows CCS5



All:

I installed the CxxTest plug-in (for eclipse) on CCS 5.4, and here are some of the problems I am seeing:

1. When I first bring up a workspace/project in CCS, I get a message

"In order to support retrieving stack traces when failure occur in CxxTest unit tests, the following dependencies need to be installed on your system:

* The follwing linker libraries are mssing: libbfd, libintl, libiberty

Stack traces will be disabled in any projects that you create. Once you have satisfied these requirements, you can re-enable this feature in your Eclipse preferences."

[It appears that unless the 3 libraries mentioned are not included, I cannot move on with CxxTest in a Windows/CCS environment.]

2. If I try to go on from this point, I get errors of missing .h files from a "generated file." I cannot find the .h files that are missing in any of the CxxTest directories that I downloaded.

I am using C5505, CCS5.4, CxxTest 4.3, Windows 7.

It appears that CxxTest is best run in a Linux environment - any comments?

  • Todd,

    Sorry, I personally never used CxxTest and am unaware of anybody who did... However the libraries missing seem part of a typical Linux environment (I couldn't also find any reported problems on the Internet). Maybe someone else will be able to ping with some additional comments.

    Regards,

    Rafael

  • All:

    I have tried to build the CxxTest example outside of Code Composer Studio, using Visual Studio tools, and I had a successful build. I was able to start with a file called MyTestSuite.h, and from that go through the steps to build a "test runner" file called runner.cpp - using the "cl" compiler, I was then able to build runner.exe which gave me the desired results when executed.

    Now I am trying to port that same test mechanism into Code Composer Studio 5.3 to build an "equivalent" runner.out file for use with the C5505.

    I am running into a snag - when I try building, there are some obvious support files missing that were provided by visual Studio. One of these provides a function called fflush() that is used in the CxxTest environment. I have been looking for references on the E2E forums for fflush(), but have not seen anything. Do you know if some of this capability is supplied by the XDC support?  Some of the the other things lacking so far are " _ftable is undefined", "numBytes is undefined", and "size_t is undefined." I would hope that these could be corrected with the possible inclusion of a library...

     

  • Success!

    I am able to build a CxxTest example, and load it into the simulator. it is quite large - I am thinking that any of the software unit testing may need to ge done in a simulator, where I can  expand the memory.

    I found that I needed to turn on a compile option under "Library Function Assumptions":  File contains an RTS library function - to get past the undefined things mentioned in the previous post.

     

     

  • Hi Todd,
    I understand you've used CxxTest on CCS. I've just started learning CxxTest and i was told to use it in CCS, but i'm not sure how to go about doing it. I understand this post is a little old and was wondering if you still remember how to do it. I'm not sure how to get started.
  • Jonathan:
    In the end, I was comparing CxxTest against a commercial product (VectorCAST), and I ended up using VectorCAST.
    There are a lot of setup items with CxxTest, and in the enviroment that we were using, I needed to use the simulator, mainly because I did not have enough memory in the system to use hardware. Sorry, cannot tell you much more than that, because I have not tried using CxxTest for about 1.5 years now...
  • Hi Todd

    I am also facing the same issue of missing .h files and even i cannot find .h files that are missing in Cxxtest 4.4 or 4.3 version that i downloaded.
    It looks you have found out the solution for this problem.It will be of great help if you let me know how to integrate Cxxtest with CCS.

    Thanks
    Sam
  • Hi Sam,

    I think I didn't understand how cxxtest works when I asked the qns. In the end what I did was, I created my test functions and generate cxxtest using python, where a main function will be generated, I then copy those codes into my own source files(since a program can't have two mains, I had to copy the codes inside the main rather than copying the whole file).

  • Sam:

    As stated earlier, I have had no further experience with CxxTest, and unfortunately, I cannot even get back to where I was. (I did this while working as a contractor, and I do not have access to the files that I used.)