OilTestFunction: Test: the structure
Typedef for functions that initialize special values in source arrays for a particular function class. OIL_TEST_HEADER:
Default number of bytes that are prepended to the array test area.
IMPORT_C OilTest * | oil_test_new | ( | OilFunctionClass * | klass | ) |
oil_test_new: : an OilFunctionClass
Creates a new OilTest for the OilFunctionClass represented by .
Returns: the new OilTest
IMPORT_C void | oil_test_free | ( | OilTest * | test | ) |
oil_test_free: Test: the OilTest
Frees memory associated withTest
IMPORT_C void | oil_test_set_iterations | ( | OilTest * | test, |
int | iterations | |||
) |
oil_test_set_iterations: Test: the OilTest : the number of iterations
Sets the number of iterations ofTestto .
IMPORT_C void | oil_test_check_ref | ( | OilTest * | test | ) |
oil_test_check_ref: Test: the OilTest
Runs the test specified byTeston the reference function of the class being tested.
IMPORT_C int | oil_test_check_impl | ( | OilTest * | test, |
OilFunctionImpl * | impl | |||
) |
oil_test_check_impl: Test: the OilTest : an OilFunctionImpl
Runs the testing procedure described byTeston the implementation .
Returns: 1 if passes the test, 0 if it fails
IMPORT_C void | oil_test_cleanup | ( | OilTest * | test | ) |
oil_test_cleanup Test: the OilTest
Cleans upTest.
FIXME: needs work
IMPORT_C void | oil_test_init | ( | OilTest * | test | ) |
oil_test_init: Test: the OilTest
IntializesTest.
FIXME: needs work
IMPORT_C void | oil_test_set_test_header | ( | OilTest * | test, |
OilParameter * | p, | |||
int | test_header | |||
) |
oil_test_set_test_header: Test: the OilTest : the OilParameter to change the header for : the number of bytes of guard header
Sets the number of bytes of guard header for to .
IMPORT_C void | oil_test_set_test_footer | ( | OilTest * | test, |
OilParameter * | p, | |||
int | test_footer | |||
) |
oil_test_set_test_footer: Test: the OilTest : the OilParameter to change the footer for : the number of bytes of guard footer
Sets the number of bytes of guard footer for to .
IMPORT_C void | oil_test_set_impl | ( | OilTest * | test, |
OilFunctionImpl * | impl | |||
) |
oil_test_set_impl: Test: the OilTest : an OilFunctionImpl to set
Sets the current implementation ofTestto .
void | _oil_test_marshal_function | ( | void * | func, |
unsigned long * | args, | |||
int | n_args, | |||
unsigned int | pointer_mask, | |||
OilProfile * | prof | |||
) |
IMPORT_C void * | oil_test_get_source_data | ( | OilTest * | test, |
OilArgType | arg_type | |||
) |
IMPORT_C int | oil_test_get_arg_pre_n | ( | OilTest * | test, |
OilArgType | arg_type | |||
) |
IMPORT_C int | oil_test_get_arg_post_n | ( | OilTest * | test, |
OilArgType | arg_type | |||
) |
IMPORT_C int | oil_test_get_arg_stride | ( | OilTest * | test, |
OilArgType | arg_type | |||
) |
IMPORT_C int | oil_test_get_value | ( | OilTest * | test, |
OilArgType | arg_type | |||
) |