DevOps Automation

 View Only
Expand all | Collapse all

How to test a C language 12k lines intialization function..?

  • 1.  How to test a C language 12k lines intialization function..?

    Posted Fri July 16, 2021 05:14 PM

    Hi,

    I am testing a C language function which is initializing global structure members.

    When i set the test case to build in RTRT it is running for days but not starting execution procedure.

    Is there any way to execute test using commands or something else.

    Please update me if you have any idea how to do it.!

    Thanks in advance,

    Lokesh.


    #Support
    #SupportMigration
    #RationalTestRealTime


  • 2.  RE: How to test a C language 12k lines intialization function..?

    Posted Thu July 22, 2021 08:45 AM

    Hi,

    Can you show how you initialize the global structure in the test script?

    What do you mean by "set the test case to build in RTRT"

    And by " it is running for days but not starting execution procedure." you mean it never end? Execution never terminated?

    The build logs in verbose mode should give more information. Where it stop/loop.

    Yes, you can run test from the command line but easier if you have already a makefile and customize it with TestRT command. But you have first to make a correct and running test script (PTU).

    There is a script which allow to launch in one shoot, TestRT_test.pl

    The script will launch all phases using the TDP therefore you have nothing to do.

    Of course, you can use from a makefile, and the usage is:

    TestRT_test [-options] [--settings] <testScript> <additional source files> -I<includePath> -D<macroDefines> ....

    testrt_test <launcher options> <instrum options> --<settings> <testScriptFile> <source files> -I<include directory> -D<macro> [-- <cflags>] [-CPPFLAGS- <CPPFLAGS>] [-PPFLAGS- <PPFLAGS>] [-LDFLAGS- <ldflags>]

    You have all options using the command TestRT_test -help

    The script can be used for Component Testing for C and Coverage

    Yanis


    #Support
    #RationalTestRealTime
    #SupportMigration