.read_recv = dummy_read_recv,
};
+/*
+ * test1
+ *
+ * Check setup without actually running daemon
+ */
+
static void test1(TALLOC_CTX *mem_ctx, const char *pidfile,
const char *sockpath)
{
assert(ret == -1);
}
+/*
+ * test2
+ *
+ * Start daemon, check PID file, sock daemon functions, termination,
+ * exit code
+ */
+
static void test2_startup(void *private_data)
{
int fd = *(int *)private_data;
assert(ret == -1);
}
+/*
+ * test3
+ *
+ * Start daemon, test watching of (parent) PID
+ */
+
static void test3(TALLOC_CTX *mem_ctx, const char *pidfile,
const char *sockpath)
{
assert(ret == -1);
}
+/*
+ * test4
+ *
+ * Start daemon, test termination via wait_send function
+ */
+
struct test4_wait_state {
};
assert(ret == -1);
}
+/*
+ * test5
+ *
+ * Start daemon, multiple client connects, requests, disconnects
+ */
+
#define TEST5_MAX_CLIENTS 10
struct test5_pkt {
assert(ret == 0);
}
+/*
+ * test6
+ *
+ * Start daemon, test client connects, requests, replies, disconnects
+ */
+
struct test6_pkt {
uint32_t len;
uint32_t data;