diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-12 11:56:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-12 11:56:42 +0100 |
commit | 491e42b434921ed3d102956bb7ad1fe3697fef46 (patch) | |
tree | 45986c3764c82d50f4fded5e7c05a25c875adfa9 /test/rspamd_test_suite.c | |
parent | ad29a3dd73648b23f818d7a62c6424a14a884e10 (diff) | |
download | rspamd-491e42b434921ed3d102956bb7ad1fe3697fef46.tar.gz rspamd-491e42b434921ed3d102956bb7ad1fe3697fef46.zip |
Restore testing framework.
Diffstat (limited to 'test/rspamd_test_suite.c')
-rw-r--r-- | test/rspamd_test_suite.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c index 7bd86d483..73580a998 100644 --- a/test/rspamd_test_suite.c +++ b/test/rspamd_test_suite.c @@ -1,6 +1,6 @@ -#include "../src/config.h" -#include "../src/main.h" -#include "../src/cfg_file.h" +#include "config.h" +#include "main.h" +#include "cfg_file.h" #include "tests.h" struct rspamd_main *rspamd_main = NULL; @@ -38,15 +38,12 @@ main (int argc, char **argv) else { cfg->log_level = G_LOG_LEVEL_INFO; } + cfg->log_type = RSPAMD_LOG_CONSOLE; /* First set logger to console logger */ - rspamd_set_logger (RSPAMD_LOG_CONSOLE, g_quark_from_static_string("rspamd-test"), rspamd_main); + rspamd_set_logger (cfg, g_quark_from_static_string("rspamd-test"), rspamd_main); (void)open_log (rspamd_main->logger); g_log_set_default_handler (rspamd_glib_log_function, rspamd_main->logger); -#if 0 - g_test_add_func ("/rspamd/memcached", rspamd_memcached_test_func); -#endif - g_test_add_func ("/rspamd/rcl", rspamd_rcl_test_func); g_test_add_func ("/rspamd/mem_pool", rspamd_mem_pool_test_func); g_test_add_func ("/rspamd/fuzzy", rspamd_fuzzy_test_func); g_test_add_func ("/rspamd/url", rspamd_url_test_func); |