summaryrefslogtreecommitdiff
path: root/volk/lib/qa_utils.h
diff options
context:
space:
mode:
authorJohnathan Corgan2011-07-08 10:23:31 -0700
committerJohnathan Corgan2011-07-08 10:23:31 -0700
commit666cd2dd6818fb66e538fa52957f3a23d68e7b94 (patch)
tree93a5240422a410d380cf11488097a2a871b8a2be /volk/lib/qa_utils.h
parent5938a37512ec66872adf28b260cb1d2bfefa9602 (diff)
parent9bfe75fd7c6a7069db2d2a98195faabf6ba248e2 (diff)
downloadgnuradio-666cd2dd6818fb66e538fa52957f3a23d68e7b94.tar.gz
gnuradio-666cd2dd6818fb66e538fa52957f3a23d68e7b94.tar.bz2
gnuradio-666cd2dd6818fb66e538fa52957f3a23d68e7b94.zip
Merged jblum/new_volk into master
Diffstat (limited to 'volk/lib/qa_utils.h')
-rw-r--r--volk/lib/qa_utils.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/volk/lib/qa_utils.h b/volk/lib/qa_utils.h
index 1b64bacaa..a1bc1f20c 100644
--- a/volk/lib/qa_utils.h
+++ b/volk/lib/qa_utils.h
@@ -3,6 +3,9 @@
#include <cstdlib>
#include <string>
+#include <vector>
+#include <volk/volk.h>
+#include <volk/volk_common.h>
struct volk_type_t {
bool is_float;
@@ -18,10 +21,10 @@ volk_type_t volk_type_from_string(std::string);
float uniform(void);
void random_floats(float *buf, unsigned n);
-bool run_volk_tests(const int[], void(*)(), std::string, float, float, int, int);
-
-#define VOLK_RUN_TESTS(func, tol, scalar, len, iter) BOOST_CHECK_EQUAL(run_volk_tests(func##_arch_defs, (void (*)())func##_manual, std::string(#func), tol, scalar, len, iter), 0)
+bool run_volk_tests(struct volk_func_desc, void(*)(), std::string, float, float, int, int, std::vector<std::string> *);
+#define VOLK_RUN_TESTS(func, tol, scalar, len, iter) BOOST_AUTO_TEST_CASE(func##_test) { BOOST_CHECK_EQUAL(run_volk_tests(func##_get_func_desc(), (void (*)())func##_manual, std::string(#func), tol, scalar, len, iter, 0), 0); }
+#define VOLK_PROFILE(func, tol, scalar, len, iter, results) run_volk_tests(func##_get_func_desc(), (void (*)())func##_manual, std::string(#func), tol, scalar, len, iter, results)
typedef void (*volk_fn_1arg)(void *, unsigned int, const char*); //one input, operate in place
typedef void (*volk_fn_2arg)(void *, void *, unsigned int, const char*);
typedef void (*volk_fn_3arg)(void *, void *, void *, unsigned int, const char*);