32 #ifndef TC_UTILS_API_H
33 #define TC_UTILS_API_H
39 #include <clAmsTypes.h>
44 #define TC_MAX_STR_LENGTH 256
106 ClAmsHAStateT ha_state;
146 ClCharT *subsystem_name,
147 ClCharT *test_case_name,
178 ClAmsCSIDescriptorT *csi_desc,
179 ClCharT *subsystem_name,
180 ClCharT *test_case_name,
221 const ClCharT *subsystem,
222 const ClCharT *test_name,
287 int clTcActivate ( ClAmsCSIDescriptorT *csi_desc, ClAmsHAStateT ha_state );
298 void clTcDeactivate (
void );
void clTcRun(void)
API called to activate Test Lifecycle Control (TLC) control loop.
int clTcActivate(ClAmsCSIDescriptorT *csi_desc, ClAmsHAStateT ha_state)
API called to start the test case registered by the user in clTcInitialze.
struct ClTcParamT ClTcParamT
Basic structure to store the parsed runtime configuration paramater, by TLC.
union ClTcParamValU ClTcParamValU
Union to store parsed runtime configuration paramater value, by TLC.
struct ClTcParamListT ClTcParamListT
List to store all the parsed runtime configuration paramaters, by TLC.
void clTcFinalize(void)
Stop the Test Lifecyle Control (TLC) control loop.
int clTcParseConfigFile(ClCharT *file_path, ClCharT *file_name, ClCharT *subsystem_name, ClCharT *test_case_name, ClTcParamListT *param_list)
Parse a file containing runtime paramaters for a test case.
int clTcParseWorkLoad(ClAmsCSIDescriptorT *csi_desc, ClCharT *subsystem_name, ClCharT *test_case_name, ClTcParamListT *param_list)
Wrapper function for clTcParsConfigFile, called with the AMF CSI descriptor.
void clTcPrintParams(void)
Print utility that prints the parsed runtime configuration parameters.
ClTcParamTypeE
Current paramater types supported by TLC.
Definition: clTcUtilsApi.h:53
int clTcInitialize(const ClCharT *subsystem, const ClCharT *test_name, int(*func_to_register)(ClTcParamListT *param_list))
Initialize Test Lifecycle Control (TLC) infrastructure and register test case start function.
#define TC_MAX_STR_LENGTH
Default size of all strings used within the TLC infrastructure.
Definition: clTcUtilsApi.h:44
Union to store parsed runtime configuration paramater value, by TLC.
Definition: clTcUtilsApi.h:68
Basic structure to store the parsed runtime configuration paramater, by TLC.
Definition: clTcUtilsApi.h:83
ClTcParamValU value
parameter value (see ClTcParamValU)
Definition: clTcUtilsApi.h:95
ClCharT name[TC_MAX_STR_LENGTH]
parameter name
Definition: clTcUtilsApi.h:86
ClTcParamTypeE type
parameter type (see ClTcParamTypeE)
Definition: clTcUtilsApi.h:92
ClInt32T id
paramter id; has the same meaning as paramater name, must be unique
Definition: clTcUtilsApi.h:89
List to store all the parsed runtime configuration paramaters, by TLC.
Definition: clTcUtilsApi.h:105