6#ifndef SECP256K1_UNIT_TEST_H
7#define SECP256K1_UNIT_TEST_H
18#define MAX_SUBPROCESSES 16
24#define CASE(name) { #name, run_##name }
25#define CASE1(name) { #name, name }
27#define MAKE_TEST_MODULE(name) { \
30 sizeof(tests_##name) / sizeof(tests_##name[0]) \
34#define REPEAT_TEST(fn) REPEAT_TEST_MULT(fn, 1)
35#define REPEAT_TEST_MULT(fn, multiplier) \
36 static void fn(void) { \
38 int repeat = COUNT * (multiplier); \
39 for (i = 0; i < repeat; i++) \
struct tf_targets targets
const struct tf_test_module * registry_no_rng
const struct tf_test_module * registry_modules
const struct tf_test_entry * slots[MAX_ARGS]
const struct tf_test_entry * data
static int tf_init(struct tf_framework *tf, int argc, char **argv)
void(* run_test_fn)(const struct tf_test_entry *)
static int tf_run(struct tf_framework *tf)
int(* setup_ctx_fn)(void)