ADTF  v2.14.3
testbench.h File Reference

Test bench. More...

Go to the source code of this file.

Classes

struct  tTestDoc
 This structure defines a test case. More...
 
struct  tTestGroupDoc
 This structure defines a group of test cases. More...
 
class  ITester
 This class is the base class of all test cases. More...
 
class  ITestReportOutputter
 This interface has to be implemented by the test report class. More...
 
class  ITestBench
 This interface has to be implemented by the main test program. More...
 

Typedefs

typedef void tTestResult
 Result type of test methods.
 

Functions

ITestBench__get_testbench ()
 This function will return the pointer to the currently active test bench.
 
tInt RunTestBench (tInt argc=0, const tChar *argv[]=NULL, ITestReportOutputter *pConsoleOutputter=NULL, tInt nConsoleOutputterFlags=0, ITestReportOutputter *pFileOutputter=NULL, tInt nFileOutputterFlags=0)
 This function will perform all tests defined in the module. More...
 
tVoid OutputDebugStringWrapper (const tChar *strMessage)
 This function creates a debug message. More...
 

Detailed Description

Test bench.

Copyright © Audi Electronics Venture GmbH. All rights reserved

Author
WROTHFL
Date
2014-06-27 14:34:46 +0200 (Fr, 27 Jun 2014)
Revision
775
Remarks

Definition in file testbench.h.

Function Documentation

tVoid OutputDebugStringWrapper ( const tChar strMessage)

This function creates a debug message.

Note
This works just on Windows platforms
Parameters
[in]strMessageThe debug message
Returns
tVoid
tInt RunTestBench ( tInt  argc = 0,
const tChar argv[] = NULL,
ITestReportOutputter pConsoleOutputter = NULL,
tInt  nConsoleOutputterFlags = 0,
ITestReportOutputter pFileOutputter = NULL,
tInt  nFileOutputterFlags = 0 
)

This function will perform all tests defined in the module.

Parameters
[in]argcThe size of the argv array. (optional)
[in]argvThe array of commandline parameters. (optional)
[in]pConsoleOutputterThe registered console outputter (optional)
[in]nConsoleOutputterFlagsThe flags of the registered console outputter (optional)
[in]pFileOutputterThe registered file outputter (optional)
[in]nFileOutputterFlagsThe flags of the registered file outputter (optional)
Returns
0 if success, otherwise -1

Referenced by main().


Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Fri Mar 22 2019 by doxygen 1.8.10)