1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 06:16:40 +02:00

tests: run tests on plugins only if the plugins are enabled and compiled

This commit is contained in:
Sébastien Helleu
2020-05-17 15:29:06 +02:00
parent a489fa6eb4
commit 62ccee9505
8 changed files with 83 additions and 105 deletions
+3 -3
View File
@@ -530,15 +530,15 @@ TEST(CoreEval, EvalExpression)
"%s-test-",
gui_color_from_option (config_color_chat_delimiters));
WEE_CHECK_EVAL(str_value, "${color:chat_delimiters}-test-");
config_file_search_with_string ("irc.color.message_join", NULL, NULL,
config_file_search_with_string ("weechat.color.chat_host", NULL, NULL,
&ptr_option, NULL);
if (!ptr_option)
{
FAIL("ERROR: option irc.color.message_join not found.");
FAIL("ERROR: option weechat.color.chat_host not found.");
}
snprintf (str_value, sizeof (str_value),
"%s-test-", gui_color_from_option (ptr_option));
WEE_CHECK_EVAL(str_value, "${color:irc.color.message_join}-test-");
WEE_CHECK_EVAL(str_value, "${color:weechat.color.chat_host}-test-");
WEE_CHECK_EVAL("test", "${option.not.found}test");
/* test modifier (invalid values) */