RunTest
Description
RunTest is where you compute your test.
Syntax
int RunTest(const unsigned int iunTestIndex, int (*pProgress)(const double&));
Parameters
Input
iunTestIndex: the identification number of the test to run.
pProgress: you can specify the progression of your test using this function to send a double between 0 and 1 (0 for 0% and 1 for 100%).
Return
(int): returns the identification number of the error if an error occurs or 0 if no error occurs.
Example
To get a full example of the API use, download the .Plugin
#define OPT_PLUGIN_NO_ERROR 0
int RunTest(const unsigned int iunTestIndex, int (*pProgress)(const double&))
{
switch (iunTestIndex)
{
case 0:
pProgress(0);
[...]
pProgress(1);
break;
case 1:
[...]
break;
case 2:
[...]
break;
}
return OPT_PLUGIN_NO_ERROR;
}