gwenhywfar  5.9.0
Functions
testframework.c File Reference
#include "testframework_p.h"
#include "testgui_l.h"
#include <gwenhywfar/args.h>
#include <gwenhywfar/error.h>
#include <gwenhywfar/gui.h>
#include <gwenhywfar/debug.h>
Include dependency graph for testframework.c:

Go to the source code of this file.

Functions

static void _finishGui (GWEN_GUI *gui)
 
static GWEN_DB_NODE_readCommandLine (int argc, char **argv)
 
static int _runModule (GWEN_GUI *gui, GWEN_TEST_MODULE *mod, int depth)
 
static int _runTest (GWEN_GUI *gui, GWEN_TEST_MODULE *mod, int depth)
 
static GWEN_GUI_setupGui (GWEN_TEST_FRAMEWORK *tf, int argc, char **argv)
 
void TestFramework_AddModule (GWEN_TEST_FRAMEWORK *tf, GWEN_TEST_MODULE *mod)
 
void TestFramework_free (GWEN_TEST_FRAMEWORK *tf)
 
GWEN_TEST_MODULETestFramework_GetModulesRoot (const GWEN_TEST_FRAMEWORK *tf)
 
GWEN_TEST_FRAMEWORKTestFramework_new ()
 
int TestFramework_Run (GWEN_TEST_FRAMEWORK *tf, int argc, char **argv)
 

Function Documentation

void _finishGui ( GWEN_GUI gui)
static

Definition at line 88 of file testframework.c.

References Test_Gui_FlushLogs(), and TestGui_Unextend().

Referenced by TestFramework_Run().

Here is the call graph for this function:

Here is the caller graph for this function:

GWEN_DB_NODE * _readCommandLine ( int  argc,
char **  argv 
)
static
int _runModule ( GWEN_GUI gui,
GWEN_TEST_MODULE mod,
int  depth 
)
static

Definition at line 96 of file testframework.c.

References _runTest(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_ERROR_NOT_IMPLEMENTED, GWEN_Test_Module_GetName(), GWEN_Test_Module_SetResult(), and TestGui_AddLogLine().

Referenced by TestFramework_Run().

Here is the call graph for this function:

Here is the caller graph for this function:

int _runTest ( GWEN_GUI gui,
GWEN_TEST_MODULE mod,
int  depth 
)
static
GWEN_GUI * _setupGui ( GWEN_TEST_FRAMEWORK tf,
int  argc,
char **  argv 
)
static

Definition at line 55 of file testframework.c.

References _readCommandLine(), DBG_ERROR, GWEN_DB_GetCharValue(), GWEN_DB_GetIntValue(), GWEN_Gui_GetGui(), GWEN_LOGDOMAIN, NULL, TestFramework_free(), TestGui_Extend(), TestGui_SetLogFile(), and TestGui_SetLogLastX().

Referenced by TestFramework_Run().

Here is the call graph for this function:

Here is the caller graph for this function:

void TestFramework_AddModule ( GWEN_TEST_FRAMEWORK tf,
GWEN_TEST_MODULE mod 
)

Definition at line 195 of file testframework.c.

void TestFramework_free ( GWEN_TEST_FRAMEWORK tf)

Definition at line 218 of file testframework.c.

References GWEN_FREE_OBJECT, and GWEN_Test_Module_free().

Referenced by _setupGui().

Here is the call graph for this function:

Here is the caller graph for this function:

GWEN_TEST_MODULE* TestFramework_GetModulesRoot ( const GWEN_TEST_FRAMEWORK tf)

Definition at line 229 of file testframework.c.

GWEN_TEST_FRAMEWORK* TestFramework_new ( void  )

Definition at line 204 of file testframework.c.

References GWEN_NEW_OBJECT, GWEN_Test_Module_new(), and GWEN_Test_Module_SetName().

Here is the call graph for this function:

int TestFramework_Run ( GWEN_TEST_FRAMEWORK tf,
int  argc,
char **  argv 
)

Definition at line 35 of file testframework.c.

References _finishGui(), _runModule(), _setupGui(), GWEN_ERROR_INVALID, and NULL.

Here is the call graph for this function: