Lhogho  0.0.027
Param Parsers

Introduction

This module is responsible for parsing and handling parameters in test case files. The test may contain or not parameters.

Parameter format

Each parameter line is a comment line in the begining of the source file. The parameter has a name (string) and optionally value. The format is

; <param_name>=<value>

Implementing new parameter parsers

If want to implement new parser the only thing you have to do is to implement a parser function with prototype like this

RESULT <param_name>_parser(const TCHAR * parameter_name,
                           const TCHAR * parameter_optipons,
                           test_case_info * test_case_params);

where param_name is the name of parameter. Also a line in the register list must be added (in Register file file Line is pretty simple :

_(<param_name>)

Note: Do not forget to add an escape slash at the end of previous line ot the macro.

After recompile the parser will pass the parameter name and coresponding value to your parser function. Your task is to add some flags or other data into test_case_info structure and handle it in the test process.


[ HOME | INDEX | ATOMS | VARS | REFERENCE ]
Lhogho Developer's Documentation
Tue Feb 7 2012