gwenhywfar 5.10.1
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

◆ _finishGui()

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:

◆ _readCommandLine()

GWEN_DB_NODE * _readCommandLine ( int  argc,
char **  argv 
)
static

◆ _runModule()

int _runModule ( GWEN_GUI gui,
GWEN_TEST_MODULE mod,
int  depth 
)
static

Definition at line 96 of file testframework.c.

References _runModule(), _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 _runModule(), and TestFramework_Run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _runTest()

int _runTest ( GWEN_GUI gui,
GWEN_TEST_MODULE mod,
int  depth 
)
static

◆ _setupGui()

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:

◆ TestFramework_AddModule()

void TestFramework_AddModule ( GWEN_TEST_FRAMEWORK tf,
GWEN_TEST_MODULE mod 
)

Definition at line 195 of file testframework.c.

◆ TestFramework_free()

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:

◆ TestFramework_GetModulesRoot()

GWEN_TEST_MODULE * TestFramework_GetModulesRoot ( const GWEN_TEST_FRAMEWORK tf)

Definition at line 229 of file testframework.c.

◆ TestFramework_new()

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:

◆ TestFramework_Run()

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: