diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-27 17:12:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-27 17:12:41 +0000 |
commit | 0c5dfb95414875fb7532944e0faaf09e35afa1f4 (patch) | |
tree | a718288ed50440848c948dde21a51958cb2da377 /test/rspamd_test_suite.c | |
parent | 6df0f09c9ac92d781c9708ef6dc9bf2bd75f1bc9 (diff) | |
download | rspamd-0c5dfb95414875fb7532944e0faaf09e35afa1f4.tar.gz rspamd-0c5dfb95414875fb7532944e0faaf09e35afa1f4.zip |
Rework lua tests structure, require external busted.
Diffstat (limited to 'test/rspamd_test_suite.c')
-rw-r--r-- | test/rspamd_test_suite.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/rspamd_test_suite.c b/test/rspamd_test_suite.c index 9aece9b89..a70a0102f 100644 --- a/test/rspamd_test_suite.c +++ b/test/rspamd_test_suite.c @@ -13,6 +13,11 @@ main (int argc, char **argv) { struct rspamd_config *cfg; + if (argc > 0 && strcmp (argv[1], "lua") == 0) { + /* Special lua testing mode */ + rspamd_lua_test_func (argc - 1, &argv[2]); + } + g_test_init (&argc, &argv, NULL); rspamd_main = (struct rspamd_main *)g_malloc (sizeof (struct rspamd_main)); @@ -56,7 +61,6 @@ main (int argc, char **argv) g_test_add_func ("/rspamd/upstream", rspamd_upstream_test_func); g_test_add_func ("/rspamd/shingles", rspamd_shingles_test_func); g_test_add_func ("/rspamd/http", rspamd_http_test_func); - g_test_add_func ("/rspamd/lua", rspamd_lua_test_func); g_test_run (); |