aboutsummaryrefslogtreecommitdiff
path: root/include/kpl_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/kpl_test.h')
-rw-r--r--include/kpl_test.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/kpl_test.h b/include/kpl_test.h
index 1a61a30..6d19eff 100644
--- a/include/kpl_test.h
+++ b/include/kpl_test.h
@@ -1,4 +1,19 @@
#pragma once
+// KPL testing framework
+
#include "kpl.h"
+
+typedef struct _kpl_test kpl_test;
+
+typedef void kpl_test_function(__attribute__((unused)) kpl_test *_test);
+
+typedef struct _kpl_test {
+ int32_t error_line_number;
+ char *file_name, *test_name, *error_message;
+ kpl_test_function *test_function;
+ struct _kpl_test *next_test;
+} kpl_test;
+
+void kpl_test_add(kpl_test *_test);