summaryrefslogtreecommitdiff
path: root/tests/unit/core
AgeCommit message (Collapse)Author
2021-03-17api: add support of pointer names in function string_eval_expression (direct ↵Sébastien Helleu
and in hdata) These two formats are now supported, if "pointer_name" is present in the "pointers" hashtable: * "${pointer_name}": value of pointer (example: "0x1234abcd") * ${buffer[pointer_name].full_name}: use of a pointer name instead of pointer value or list name
2021-03-16core: add options to customize commands on system signals, quit by default ↵Sébastien Helleu
on SIGHUP when not running headless (closes #1595) New options to customize behavior on signals received, with the default behavior: - weechat.signal.sighup: quit in normal mode, reload config in headless - weechat.signal.sigquit: quit - weechat.signal.sigterm: quit - weechat.signal.sigusr1: no command executed by default - weechat.signal.sigusr2: no command executed by default The signals SIGUSR1 and SIGUSR2 are introduced by this commit, so it's now possible to run commands when they are received. The SIGHUP signal makes now WeeChat quit, it was the behavior before version 2.9 of WeeChat (see commit de1e61f7cd50cbd1a99777fe6611642a51abf5f6).
2021-02-05core: add raw string in evaluation of expressions with "raw:xxx" (closes #1611)Sébastien Helleu
2021-01-02core: update copyright datesSébastien Helleu
2021-01-01core: add indentation and colors in /eval debug outputSébastien Helleu
2020-12-31core: display more verbose debug with two "-d" in command /evalSébastien Helleu
Now a single -d in command /eval shows less debug messages than previous versions. To get the same debug messages than previous versions, two -d must be used.
2020-12-25core: do not remove quotes in arguments of command /eval (closes #1601)Sébastien Helleu
Now, /eval -n -c "a" == "a" returns True instead of False. When quotes were removed, the condition evaluated was: a" == "a (which is False).
2020-11-14core: add evaluation of conditions in evaluation of expressions with ↵Sébastien Helleu
"eval_cond:" (closes #1582)
2020-10-03tests: run callback when resetting options in testsSébastien Helleu
2020-08-23api: add argument "bytes" in function string_dyn_concatSébastien Helleu
2020-08-05tests: fix name of some unit testsSé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-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-04-21core: restore signal "signal_sighup", and if eaten do not reload configurationSébastien Helleu
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-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-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
2020-03-01api: add function crypto_hash_pbkdf2Sébastien Helleu
2020-03-01core: move crypto functions to wee-crypto.c, rename API function string_hash ↵Sébastien Helleu
to crypto_hash
2020-03-01core: merge functions string_hash_binary and string_hash into a single ↵Sébastien Helleu
function string_hash
2020-03-01core: add function secure_hash_pbkdf2Sébastien Helleu
2020-02-29core: add support of CRC32 algorithm in hash functionsSébastien Helleu
2020-02-29api: add functions string_hash_binary and string_hashSébastien Helleu
2020-02-29tests: add tests on function secure_derive_keySébastien Helleu
2020-02-29core: add functions to compute binary/hex hash of dataSébastien Helleu
2020-02-04tests: add eval tests with debug enabledSébastien Helleu
2020-02-03tests: add unit tests on function util_file_get_contentSébastien Helleu
2020-02-02tests: add unit tests on function util_get_time_diffSébastien Helleu
2020-01-27tests: add eval tests with hdata variables of different typesSébastien Helleu
2020-01-27tests: add eval tests on conditions with text after closing parenthesisSébastien Helleu
2020-01-27tests: add eval tests on conditions with leading and trailing spaces (ignored)Sébastien Helleu
2020-01-27tests: add eval tests on "regex not matching" comparisonSébastien Helleu
2020-01-27tests: add eval tests with hdata list name and pointerSébastien Helleu
2020-01-27tests: add eval tests with buffer local variablesSébastien Helleu