summaryrefslogtreecommitdiff
path: root/lily-test.h
diff options
context:
space:
mode:
Diffstat (limited to 'lily-test.h')
-rw-r--r--lily-test.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lily-test.h b/lily-test.h
index 7a46cd9..7270272 100644
--- a/lily-test.h
+++ b/lily-test.h
@@ -26,6 +26,14 @@ struct lily_globals_t {
extern struct lily_globals_t _lily_globals;
void lily_init();
+typedef void (*lily_test_t)(void);
+
+#define lily_run_test(test) _lily_run_test(#test, test)
+void _lily_run_test(const char *name, lily_test_t test);
+
+#define lily_run_suite(suite) _lily_run_suite(#suite, suite);
+void _lily_run_suite(const char *name, lily_test_t suite);
+
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*