CPPTESTCLI - Is there support for IAR project under Windows ?

elchelch Posts: 95

Hi,

IAR project under Windows , Is there support for cpptestcli command line for IAR ?

Thanks

Best Answers

  • elchelch Posts: 95
    Accepted Answer

    Hi @Mirek,

    Some progress. In properties file I had to remove the commas sign from path.
    Now I have another issue Can not load library log4cplus.dll
    Any suggestions

    Thanks

Answers

  • MirekMirek Posts: 86 ✭✭

    Hi,

    Is there support for cpptestcli command line for IAR?

    Can you please add more details? What do you mean by support for IAR projects?
    If you mean analyzing the project using "-input ?
    Also, which version of C++test are you using?

  • elchelch Posts: 95

    Hi @Mirek

    C++Test CPPTESTCLI 10.4
    Is it possible to run vs. IAR workspace pointing to the IAR compiler on windows ?

    Thanks

  • MirekMirek Posts: 86 ✭✭

    Hi @elch,

    There are a few options here, you need to start with generating the bdf file from you IAR workspace, you can do it, for example, using the following command line:

    cpptesttrace --cpptesttraceProjectName= --cpptesttraceResponseFileOption=-f --cpptesttraceOutputFile=\.bdf iarbuild .ewp -build

    Once you have your bdf file ready you can use it with cpptestcli to run the analysis:

    1. If you are using C/C++test standard (aka dtp engine):
      cpptestcli -compiler -config -input

    2. If you are using professional (aka Desktop)

    cpptestcli -data "</path/to/workspace>" -config -localsettings "" -bdf "</path/to/name.bdf>"

  • elchelch Posts: 95

    Thanks on the quick follow.
    So I need to wrap my build command in IAR with cpptesttrace in order to create bdf file ?

    Thanks

  • MirekMirek Posts: 86 ✭✭

    Yes, this is the recommended approach. If you are using Professional, and IAR for ARM you can try using importer, please see "Importing Projects with IAR Embedded Workbench Support" in the user manual. But bdf is a recommended approach

  • elchelch Posts: 95

    Hi @Mirek

    Windows -c++ 10.4.

    OK I manged to create bdf file , Now when I try to run cpptestcli I am getting an error about cpptest.compiler.dir.builtin - wrong value missing directory.
    I tried to ad it on the properties files, I gave it the path to \engine\etc\deprecated\compilers

    Any suggestions ?

    Thanks

  • MirekMirek Posts: 86 ✭✭

    Could you please post a command you are trying to execute and the exact error message?

  • elchelch Posts: 95

    Hi @Mirek

    cpptestcli -config "mypropertiesfile.properties" -input "mybdffile.bdf" -compiler iccarm_5_5

  • MirekMirek Posts: 86 ✭✭

    iccarm_5_5 is a very old compiler it was deprecated and removed in 10.4.0.

    Is there any option you can upgrade your project to use a newer version of IAR compiler?

    You can try using iccarm_6_1 instead, there are good chances it will also work.

  • elchelch Posts: 95

    Hi @Mirek

    My mistake.
    iccarm_8_20.
    I tried to add path it on the properties files, I gave it the path to \engine\etc\compilers
    Still cpptest.compiler.dir.builtin - invalid value directory.does not exists......

Sign In or Register to comment.