summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2020-06-21irc: check that the first nick char is not a prefix char or chantype in ↵Sébastien Helleu
function irc_nick_is_nick
2020-06-21irc: change default chantypes from "#&+!" to "#&"Sébastien Helleu
The default chantypes was conflicting with irc_server_prefix_chars_default ("@+").
2020-06-20tests: add test of function irc_nick_is_nick with invalid UTF-8 stringSébastien Helleu
2020-06-20irc: add support of UTF8MAPPING, add support of optional server in info ↵Sébastien Helleu
"irc_is_nick" (closes #1528)
2020-06-20tests: add tests on IRC function irc_channel_is_channelSébastien Helleu
2020-06-16tests: add tests on IRC command ACCOUNT with colon before the account nameSébastien Helleu
2020-05-31tests: fix memory leak in test of function string_hex_dumpSébastien Helleu
2020-05-21tests: add tests on function string_input_for_buffer with custom command charsSébastien Helleu
2020-05-21tests: add tests on function string_is_command_char with custom command charsSébastien Helleu
2020-05-21tests: add test on function string_base64_decode with truncated base64 stringSébastien Helleu
2020-05-21tests: add test on function string_base16_decode with a char >= 0xA0Sébastien Helleu
2020-05-21core: add base 16/32/64 encoding/decoding in evaluation of expressionsSébastien Helleu
2020-05-21core: move functions string_base_encode and string_base_decode from ↵Sébastien Helleu
plugin-api.c to wee-string.c
2020-05-21core: return -1 in case of error in functions string_base16_decode and ↵Sébastien Helleu
string_base64_decode
2020-05-17tests: run tests on plugins only if the plugins are enabled and compiledSébastien Helleu
2020-05-09api: use buffer pointer in argument "modifier_data" sent to weechat_print ↵Sébastien Helleu
modifier callback (closes #42)
2020-05-08core: rename functions hook_completion_{get_string|list_add} to ↵Sébastien Helleu
completion_{get_string|list_add} Old functions are kept for compatibility reasons.
2020-05-05core: add include comparison operators in evaluation of expressionsSébastien Helleu
New comparison operators: - "==*": is matching mask, case sensitive (wildcard "*" is allowed) - "!!*": is NOT matching mask, case sensitive (wildcard "*" is allowed) - "==-": is included, case sensitive - "!!-": is NOT included, case sensitive - "=-": is included, case insensitive - "!-": is NOT included, case insensitive
2020-05-03tests: fix pylint errorsSébastien Helleu
2020-04-21core: restore signal "signal_sighup", and if eaten do not reload configurationSébastien Helleu
2020-04-20tests: add tests on functions relay_auth_password_hash_algo_search and ↵Sébastien Helleu
relay_auth_generate_nonce
2020-04-19tests: reduce number of iterations in PBKDF2 tests from 100000 to 1000Sébastien Helleu
This speeds up tests by about 30%.
2020-04-19tests: remove obsolete file test-relay-weechat-protocol.cppSébastien Helleu
2020-04-14relay: add command "handshake" in weechat relay protocol and nonce to ↵Sébastien Helleu
prevent replay attacks (closes #1474) This introduces a new command called "handshake" in the weechat relay protocol. It should be sent by the client before the "init" command, to negotiate the way to authenticate with a password. 3 new options are added: * relay.network.auth_password * relay.network.hash_iterations * relay.network.nonce_size
2020-04-11tests: add missing include of locale.hSébastien Helleu
This fixes build of tests on FreeBSD.
2020-04-10tests: fix name of testsSébastien Helleu
2020-04-08tests: add tests on calc functionsSébastien Helleu
Functions tested: - calc_operator_precedence - calc_pop_value - calc_list_free_cb - calc_operation - calc_operation_stacks
2020-04-07tests: add missing include of stdio.h (issue #1469)Sébastien Helleu
2020-04-07core: fix memory leak in calculation of expression on FreeBSD (closes #1469)Sébastien Helleu
The memory leak was caused by a bug in function setlocale on FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243195 The fix is the following: * Remove the calls to setlocale when formatting the result. * The function snprintf is still called, and then is now locale dependent, for example in French the decimal separator is a comma instead of a dot. * A new function calc_sanitize_decimal_number is introduced to "sanitize" a decimal number: keep only the decimal separator (replace it by a dot) and remove any other separator found. Unit tests are added on these functions: * calc_sanitize_decimal_number * calc_format_result
2020-03-31tests: add tests on function irc_protocol_cb_353 with option ↵Sébastien Helleu
irc.look.color_nicks_in_names set to on
2020-03-30tests: add tests on IRC color functionsSébastien Helleu
Functions tested: - irc_color_convert_rgb2irc - irc_color_convert_term2irc - irc_color_for_tags - irc_color_modifier_cb - irc_color_weechat_add_to_infolist
2020-03-30tests: add test with remapped color in function irc_color_decodeSébastien Helleu
2020-03-28tests: add tests on remaining IRC protocol functions and callbacksSébastien Helleu
2020-03-28tests: add tests on function irc_protocol_get_message_tagsSébastien Helleu
2020-03-26tests: add tests on function irc_protocol_cb_pingSébastien Helleu
2020-03-25tests: add tests on function irc_protocol_cb_partSébastien Helleu
2020-03-24tests: add test with no arguments for AWAY commandSébastien Helleu
2020-03-24tests: add tests on IRC protocol functions with not enough argumentsSébastien Helleu
2020-03-21irc: split AUTHENTICATE message in 400-byte chunks (closes #1459)Sébastien Helleu
2020-03-19tests: add tests on functions irc_protocol_cb_mode and irc_protocol_cb_nickSébastien Helleu
2020-03-18tests: add tests on functions irc_protocol_cb_kick and irc_protocol_cb_killSébastien Helleu
2020-03-17tests: add tests on function irc_protocol_cb_joinSébastien Helleu
2020-03-16tests: add tests on function irc_protocol_cb_chghostSébastien Helleu
2020-03-15tests: rename function run_cmd_server to server_recvSébastien Helleu
2020-03-13tests: always run callback in calls to function config_file_option_setSébastien Helleu
2020-03-11tests: add tests on IRC protocol functions and some callbacksSébastien Helleu
Functions tested: * irc_protocol_is_numeric_command * irc_protocol_log_level_for_command * irc_protocol_tags * irc_protocol_nick_address * irc_protocol_cb_account * irc_protocol_cb_away * irc_protocol_cb_001 * irc_protocol_cb_005
2020-03-05tests: add tests on functions weecrypto_totp_generate and ↵Sébastien Helleu
weecrypto_totp_validate
2020-03-04tests: add tests on functions weecrypto_hash and weecrypto_hash_pbkdf2 with ↵Sébastien Helleu
NULL hash
2020-03-03tests: add tests on function weecrypto_get_hash_algoSébastien Helleu
2020-03-02core: require libgcrypt >= 1.7.0 for SHA3 algorithmsSébastien Helleu