diff -r 0d2d8ca879d8 -r a58ad50911fc src/test/test.h --- /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 +#include + +/** + * 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