diff options
author | David Schleef <ds@schleef.org> | 2004-12-30 05:48:48 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-12-30 05:48:48 +0000 |
commit | d63de3b79237c4cb63be64063f82b39cbe741e3b (patch) | |
tree | 423d86c7cb1b862940c0030ca044339cf88ea416 /liboil/liboiltest.h | |
parent | ee6786e10ddaafc2566f182595e4005db1b7a612 (diff) | |
download | liboil-d63de3b79237c4cb63be64063f82b39cbe741e3b.tar.gz |
Add support for checking the output of functions and comparing
it to the reference function.
* examples/oil-inspect.c: (oil_print_impl), (oil_print_class):
* examples/work/Makefile.am:
* examples/work/work.c: (test), (main):
* liboil/copy/permute.c: (permute_test):
* liboil/liboilfuncs.h:
* liboil/liboilfunction.c: (oil_class_optimize),
(oil_class_register_impl_by_name):
* liboil/liboilfunction.h:
* liboil/liboilparameter.h:
* liboil/liboilprototype.c: (oil_param_from_string):
* liboil/liboiltest.c: (oil_test_free),
(_oil_test_marshal_function), (oil_test_check_function),
(oil_test_check_ref), (oil_test_check_impl), (init_parameter),
(fill_array), (check_array):
* liboil/liboiltest.h:
* testsuite/test1.c: (main):
Diffstat (limited to 'liboil/liboiltest.h')
-rw-r--r-- | liboil/liboiltest.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/liboil/liboiltest.h b/liboil/liboiltest.h index a6f12e1..dd97e7a 100644 --- a/liboil/liboiltest.h +++ b/liboil/liboiltest.h @@ -45,6 +45,10 @@ struct _OilTest { int m; int inited; + int tested_ref; + + double sum_abs_diff; + int n_points; }; #define OIL_TEST_HEADER 256 @@ -53,10 +57,10 @@ struct _OilTest { OilTest *oil_test_new (OilFunctionClass *klass); void oil_test_free (OilTest *test); -void oil_test_set_impl (OilTest *test, OilFunctionImpl *impl); void oil_test_set_iterations (OilTest *test, int iterations); -int oil_test_go (OilTest *test); +void oil_test_check_ref (OilTest *test); +int oil_test_check_impl (OilTest *test, OilFunctionImpl *impl); void oil_test_cleanup (OilTest *test); void oil_test_init_src_arrays (OilTest *test); |