Menu

#78 Patch for UnitTest

open-fixed
Alby
None
5
2008-07-25
2008-05-08
No

Needed the attached to compile the UnitTests with gcc 4.3.

Is there any documentation on how the UnitTestApp should be run?

Discussion

  • Orion Poplawski

    Orion Poplawski - 2008-05-08

    Patch to support GCC 4.3

     
  • pksv

    pksv - 2008-05-12
    • assigned_to: nobody --> kalyanjk
     
  • Kalyan

    Kalyan - 2008-05-15

    Logged In: YES
    user_id=1962281
    Originator: NO

    These are the following methods to run the UnitTestApp. A detailed document will be made available very soon.

    The available command line options are:

    -log: <filename> Generates a report in comma separated format and writes it to specified file.
    -noheader Skips the header from the report (useful when appending the report to an existing file)
    -quite Suppresses diagnostic messages from the report (only test fail/pass results will be included)
    -r Recursively searches for unit test libraries
    -diag Displays additional diagnostic information such as current directory and command parameters passed to the tool.
    -config: <filename> Provides various configurations for commonly used function objects (i.e. thread count, code path, alignment, etc.)

    Examples:
    • UnitTestApp.exe AddTests.dll
    o Enumerates and executes all tests in AddTests.dll
    • UnitTestApp.exe c:\somefolder\MultiplyTests.dll d:\otherfolder\DivisionTests.dll
    o Enumerates and executes all tests in the two DLLs specified
    • UnitTestApp.exe c:\testfolder\*.dll
    o Enumerates and executes all tests in all DLLs in folder c:\testfolder
    • UnitTestApp.exe c:\tests\chapter1\*.dll c:\test\chapter3\*.dll
    o Enumerate and execute all tests in all DLLs in folders c:\test\chapter1 and c:\test\chapter3
    • UnitTestApp.exe –r c:\tests\filter*.dll
    o Recursively searches folder c:\tests and it subfolders and enumerates and executes all tests in any DLLs with filenames beginning with ‘filter’
    • UnitTestApp.exe –csv –noheader mytest.dll
    o Enumerates and executes all unit tests in shared library mytest.dll, generates a report in comma separated text file format, and suppresses printing the headers in the report
    • UnitTestApp.exe -config: ut_configFile.txt mytest.dll
    o Enumerates and executes all tests in mytest.dll, setting the system configurations specified by configfile.txt.

     
  • Kalyan

    Kalyan - 2008-07-23
    • assigned_to: kalyanjk --> jrameshbe
    • status: open --> open-fixed
     
  • Ramesh

    Ramesh - 2008-07-25
    • assigned_to: jrameshbe --> jalby
     

Log in to post a comment.