summaryrefslogtreecommitdiffstats
path: root/test/rspamd_test_suite.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-09-08 18:18:56 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-09-08 18:18:56 +0400
commit946ddcfbc4c7cdd3df426eb5f9a15f4a3fc3c640 (patch)
treeb47dc46e90b8b1e2c84d5f72070e90b6b546ed52 /test/rspamd_test_suite.c
parent32d41689d6328e9075bf4c6a822f0fe22207838b (diff)
downloadrspamd-946ddcfbc4c7cdd3df426eb5f9a15f4a3fc3c640.tar.gz
rspamd-946ddcfbc4c7cdd3df426eb5f9a15f4a3fc3c640.zip
* Add initial test suite using glib test suite
Diffstat (limited to 'test/rspamd_test_suite.c')
-rw-r--r--test/rspamd_test_suite.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c
new file mode 100644
index 000000000..d9d7f63fe
--- /dev/null
+++ b/test/rspamd_test_suite.c
@@ -0,0 +1,25 @@
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/wait.h>
+#include <sys/param.h>
+
+#include <netdb.h>
+#include <syslog.h>
+#include <fcntl.h>
+#include <stdlib.h>
+
+#include "../config.h"
+#include "../main.h"
+#include "../cfg_file.h"
+#include "tests.h"
+
+int
+main (int argc, char **argv)
+{
+ g_test_init (&argc, &argv, NULL);
+
+ g_test_add_func ("/rspamd/url", rspamd_url_test_func);
+
+ g_test_run ();
+
+}