tm_get_test_cases

Langue: en

Version: 367542 (MeeGo - 06/11/10)

Section: 3 (Bibliothèques de fonctions)

NAME

tm_get_test_cases - get list of test cases from MIN test module

SYNOPSIS

#include <test_module_api.h>

int tm_get_test_cases (const char *cfg_file, DLList **cases);

DESCRIPTION

Every MIN test module must implement tm_get_test_cases. MIN test module controller calls this function, when the test module is loaded. Each test case is described in TestCaseInfo struct.
 struct {
     char name_[MaxTestCaseName];
     ptr2test test_;
     unsigned int id_;
 } TestCaseInfo;
 

The name_ field contains the test case title, the test_ holds a pointer to the function implementing the test case. The id_ is used to internally identify the test case.

The TestCaseInfos are added to the cases list. The cfg_file can be NULL It is used to, for example, pass the script file to scripter module.

SEE ALSO

tm_run_test_case(3)