aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.h')
-rw-r--r--test/test.h17
1 files changed, 13 insertions, 4 deletions
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 <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
+#include <string.h>
-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 */