Code

unit tests: Added basic tests for unixsock utils; mocking libc I/O functions.
[sysdb.git] / t / libsysdb_test.h
index ebe1959e2a058092fd458f0ca38282bffe8f1f0d..9e4be80d0a22b84e2210891cf9cfe517dfdfda40 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef T_LIBSYSDB_H
 #define T_LIBSYSDB_H 1
 
+#include "config.h"
+
 #include "sysdb.h"
 #include "core/object.h"
 
        /* type = */ { sizeof(sdb_object_t), NULL, NULL }, \
        /* ref_cnt = */ 1, /* name = */ (name) }
 
+/*
+ * test-related data-types
+ */
+
+typedef struct {
+       Suite *(*creator)(void);
+       const char *msg;
+} suite_creator_t;
+
 /*
  * test suites
  */
@@ -60,6 +71,10 @@ util_llist_suite(void);
 Suite *
 util_strbuf_suite(void);
 
+/* t/utils/unixsock_test */
+Suite *
+util_unixsock_suite(void);
+
 #endif /* T_LIBSYSDB_H */
 
 /* vim: set tw=78 sw=4 ts=4 noexpandtab : */