liboiltest.h File Reference

OIL_TEST_HEADER

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.

OIL_TEST_FOOTER

OIL_TEST_FOOTER:

Default number of bytes that are appended to the array test area.

oil_test_new ( OilFunctionClass * )

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

oil_test_free ( OilTest * )

IMPORT_C voidoil_test_free(OilTest *test)

oil_test_free: Test: the OilTest

Frees memory associated withTest

oil_test_set_iterations ( OilTest *, int )

IMPORT_C voidoil_test_set_iterations(OilTest *test,
intiterations
)

oil_test_set_iterations: Test: the OilTest : the number of iterations

Sets the number of iterations ofTestto .

oil_test_check_ref ( OilTest * )

IMPORT_C voidoil_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.

oil_test_check_impl ( OilTest *, OilFunctionImpl * )

IMPORT_C intoil_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

oil_test_cleanup ( OilTest * )

IMPORT_C voidoil_test_cleanup(OilTest *test)

oil_test_cleanup Test: the OilTest

Cleans upTest.

FIXME: needs work

oil_test_init ( OilTest * )

IMPORT_C voidoil_test_init(OilTest *test)

oil_test_init: Test: the OilTest

IntializesTest.

FIXME: needs work

oil_test_set_test_header ( OilTest *, OilParameter *, int )

IMPORT_C voidoil_test_set_test_header(OilTest *test,
OilParameter *p,
inttest_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 .

oil_test_set_test_footer ( OilTest *, OilParameter *, int )

IMPORT_C voidoil_test_set_test_footer(OilTest *test,
OilParameter *p,
inttest_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 .

oil_test_set_impl ( OilTest *, OilFunctionImpl * )

IMPORT_C voidoil_test_set_impl(OilTest *test,
OilFunctionImpl *impl
)

oil_test_set_impl: Test: the OilTest : an OilFunctionImpl to set

Sets the current implementation ofTestto .

_oil_test_marshal_function ( void *, unsigned long *, int, unsigned int, OilProfile * )

void_oil_test_marshal_function(void *func,
unsigned long *args,
intn_args,
unsigned intpointer_mask,
OilProfile *prof
)

oil_test_get_source_data ( OilTest *, OilArgType )

IMPORT_C void *oil_test_get_source_data(OilTest *test,
OilArgTypearg_type
)

oil_test_get_arg_pre_n ( OilTest *, OilArgType )

IMPORT_C intoil_test_get_arg_pre_n(OilTest *test,
OilArgTypearg_type
)

oil_test_get_arg_post_n ( OilTest *, OilArgType )

IMPORT_C intoil_test_get_arg_post_n(OilTest *test,
OilArgTypearg_type
)

oil_test_get_arg_stride ( OilTest *, OilArgType )

IMPORT_C intoil_test_get_arg_stride(OilTest *test,
OilArgTypearg_type
)

oil_test_get_value ( OilTest *, OilArgType )

IMPORT_C intoil_test_get_value(OilTest *test,
OilArgTypearg_type
)