--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test/test.h Mon May 04 20:55:04 2009 +0300
@@ -0,0 +1,41 @@
+#ifndef TEST_TEST_H
+#define TEST_TEST_H
+
+/**
+ * @file
+ *
+ * General test-related functionality
+ */
+#include "assert.h"
+#include "util.h"
+
+#include <event2/event.h>
+#include <string.h>
+
+/**
+ * Global test-running state
+ */
+extern struct test_ctx {
+ /** The event_base that we have setup */
+ struct event_base *ev_base;
+
+} _test_ctx;
+
+
+/**
+ * Global list of test definitions
+ */
+extern const struct test {
+ /** Test name */
+ const char *name;
+
+ /** Test func */
+ void (*func) (void);
+
+ /** Do not run by default */
+ bool optional;
+} _tests[];
+
+
+
+#endif