From c7198103b9816ef761ddbdf5d23f94e52afdc730 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Wed, 8 Nov 2017 14:46:54 +0200 Subject: tests: split test and let meson handle them. --- test/test.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'test/test.h') diff --git a/test/test.h b/test/test.h index 0597207..5314fc5 100644 --- a/test/test.h +++ b/test/test.h @@ -24,12 +24,21 @@ #include #include #include +#include -struct test_results { - unsigned int executed; - unsigned int failed; +/* TODO: move to a shared util header */ +#define arrlen(a) (sizeof(a)/sizeof(a[0])) + +struct section { + char *name; + int (*testfunc)(char*); +}; + +struct test { + char *name; + int (*testfunc)(void); }; -struct test_results ok(const unsigned int test, const char *format, ...); +int ok(const unsigned int test, const char *format, ...); #endif /* LIBRIN_TEST_INCLUDED */ -- cgit v1.2.3