Sébastien Helleu
106fe6ca7c
core: update copyright dates
2026-03-08 10:37:15 +01:00
Emil Velikov
440907e1cd
cmake: simplify tests handling
...
Move the requirement checking and the dummy test where they are used.
Use REQUIRED instead of the manual FOUND check and error handling.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2026-02-04 22:21:26 +01:00
Sébastien Helleu
1efa9d6b08
core: reactivate CMake tests in root build directory (issue #1462 )
...
This fixes the command `ctest` executed in the root build directory.
It was removed by accident in commit 68d87f2b80 .
2025-05-11 10:15:08 +02:00
Sébastien Helleu
68d87f2b80
tests: add fuzz testing on core functions (issue #1462 )
...
This commit introduces fuzz testing, for now on core functions, with 4 new
targets that are built on demand with CMake option `ENABLE_FUZZ` (build of
these tests is disabled by default):
- weechat_core_calc_fuzzer
- weechat_core_crypto_fuzzer
- weechat_core_string_fuzzer
- weechat_core_utf8_fuzzer
2025-05-05 19:12:00 +02:00
Sébastien Helleu
a1cbe63a42
tests: move CMake file, main C++/headers for tests and scripts to unit directory
2025-05-05 13:18:34 +02:00
Sébastien Helleu
3a6ac9ee76
all: add SPDX license tag
2025-03-31 07:49:26 +02:00
Sébastien Helleu
d8987a1678
all: replace Copyright lines by SPDX copyright tag
2025-03-30 14:47:12 +02:00
Sébastien Helleu
547e2b934e
core: update copyright dates
2025-02-01 23:13:18 +01:00
Emil Velikov
fec71ae30c
cmake: use pkg_check_modules() for cURL
...
The cURL project has provided a pkg-config file for well over a decade
now. Just use that instead of the cmake one, since the latter also
checks for misc curl components, unusual library names (libcurl_imp)
which is not something we need.
In addition, this will make enforcing minimum version much easier.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2024-10-13 13:33:47 +02:00
Sébastien Helleu
ec78084f49
tests: add tests on function input_data
2024-10-12 21:04:13 +02:00
Emil Velikov
fc7b00562c
build: require CMake 3.12, resolve circular dependency
...
In order to resolve the circular dependency, we need to annotate the
respective static libraries as "object" libraries.
This requires cmake 3.12, where Debian 10 (old old stable) and Ubuntu
20.04 have 3.13 and 3.16 respectively.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2024-09-29 10:00:50 +02:00
Sébastien Helleu
d4ca32832e
relay: redefine bar item "input_prompt" to display the connection status on remote buffers, if different from "connected"
2024-08-21 20:37:00 +02:00
Brad Smith
de6fe1f3e1
tests: fix compilation of tests on OpenBSD
2024-06-28 23:23:15 +02:00
Sébastien Helleu
e841c11b54
relay: add option relay.look.raw_messages_max_length (issue #2122 )
2024-05-29 23:07:58 +02:00
Sébastien Helleu
917054c58d
tests: fix compilation of tests on Rocky 9.4
2024-05-26 15:41:52 +02:00
Sébastien Helleu
878c0a5d66
irc: allow range in commands /unban and /unquiet ( closes #2113 )
2024-05-13 23:05:39 +02:00
Sébastien Helleu
828ca37225
tests: split hook tests into multiple files (issue #865 )
2024-04-26 08:41:44 +02:00
Sébastien Helleu
6cf163f00c
tests: move hook modifier tests to a separate file (issue #865 )
2024-04-26 07:51:49 +02:00
Sébastien Helleu
89fe540b53
core: add unique "id" in nicklist group and nick (issue #2081 )
...
The id is a "long long" variable with the current time (microseconds
precision).
It is guaranteed to be unique for all groups and nicks inside the buffer, and
the same number is never used again in the same buffer, during the lifetime of
the process.
It persists and is unchanged after `/upgrade`.
2024-04-07 13:18:14 +02:00
Sébastien Helleu
f507be4128
tests: add tests on relay remote functions (issue #2066 )
2024-04-07 13:18:13 +02:00
Sébastien Helleu
90b855e1aa
relay: add connection to remote (issue #2066 )
...
Connection to remote:
- handshake: offer support for all supported hash algorithms
- network connect with a socket
- upgrade to websocket and authenticate with remote (password/TOTP)
- check websocket response
- get list of buffers (not used yet)
Note: connection to remote with TLS or a proxy is not yet supported.
2024-04-07 13:18:13 +02:00
Sébastien Helleu
0b0ab94aa3
tests/gui: add tests on hotlist functions
2024-03-17 15:00:00 +01:00
Sébastien Helleu
c516ff64f2
tests/scripts: make tests fail if a compiled scripting plugin fails to load
2024-03-17 13:45:39 +01:00
Sébastien Helleu
5c88ee9c45
core: add support of SGR mouse events, remove option weechat.look.mouse_timer_delay ( closes #2082 )
2024-03-06 20:33:17 +01:00
Sébastien Helleu
f19808cedd
tests: add tests on "api" relay (general functions and messages)
2024-02-18 23:42:22 +01:00
Sébastien Helleu
6cfb31c306
relay: add support of websocket extension "permessage-deflate" ( closes #1549 )
...
This extension is used to compress and decompress websocket frames (using
the DEFLATE algorithm, with zlib).
2024-02-01 21:38:53 +01:00
Sébastien Helleu
8971fc069a
relay: add "api" protocol (HTTP REST API) (issue #2066 )
2024-02-01 21:38:49 +01:00
Sébastien Helleu
869fba9f74
irc: add tests on info functions (issue #2059 )
2024-01-12 17:58:36 +01:00
Sébastien Helleu
eecb2a997e
core: update copyright dates
2024-01-01 22:29:58 +01:00
Sébastien Helleu
52f32e5612
tests: add tests on plugin config functions
2023-12-02 13:24:42 +01:00
Sébastien Helleu
f4926cbd20
tests: rename file test-plugins-api-info.cpp to test-plugin-api-info.cpp
2023-12-02 13:17:47 +01:00
Sébastien Helleu
d6796edac0
tests: add tests on plugin API info functions
2023-12-02 11:40:28 +01:00
Sébastien Helleu
bbf42a5d09
api: add support of format/translation of command arguments description line by line (issue #2005 )
2023-10-17 18:14:53 +02:00
Sébastien Helleu
63922ca038
api: add function hook_url
2023-09-16 10:19:51 +02:00
Sébastien Helleu
5ecb1adc34
core: add command /sys to show resource limits and usage
2023-08-28 12:30:32 +02:00
Sébastien Helleu
2f1de098bd
irc: add buffer for /list reply ( closes #1972 )
...
New options:
- irc.color.list_buffer_line_selected
- irc.color.list_buffer_line_selected_bg
- irc.look.list_buffer_sort
- irc.look.list_buffer_scroll_horizontal
- irc.look.new_list_position
- irc.look.list_buffer_topic_strip_colors
2023-08-12 13:05:49 +02:00
Sébastien Helleu
f46f759975
irc: evaluate options irc.ctcp.* (issue #1974 )
2023-07-12 18:58:30 +02:00
Sébastien Helleu
4e705afdf6
tests: add tests on logger tail functions (issue #1926 )
2023-06-05 07:29:10 +02:00
Sébastien Helleu
911c976f9b
tests: add tests on relay "irc" protocol
2023-06-02 18:50:45 +02:00
Sébastien Helleu
eb7435f8b9
tests: separate prefix from message in recorded messages
...
The record functions are moved to tests-record.cpp.
2023-05-22 20:43:16 +02:00
Sébastien Helleu
c3c218035a
logger: add option logger.file.log_conditions ( closes #1942 )
2023-05-20 17:08:34 +02:00
Sébastien Helleu
338f7028ec
tests: add tests on alias functions
...
Functions tested:
- alias_valid
- alias_search
- alias_string_add_word
- alias_string_add_word_range
- alias_string_add_arguments
- alias_replace_args
2023-05-18 11:10:54 +02:00
Sébastien Helleu
6415c09a07
core: add quotes around paths in CMake files ( closes #29 )
2023-05-13 11:59:18 +02:00
Sébastien Helleu
f6b69c9098
irc: add support of capability "batch" ( closes #1292 )
2023-05-03 22:11:31 +02:00
Sébastien Helleu
e21144eb1f
tests: add tests on gui bar functions
2023-03-26 10:42:31 +02:00
Sébastien Helleu
48c1aebb83
tests: add tests on gui key functions (issue #1875 )
2023-01-29 12:41:11 +01:00
Sébastien Helleu
33bba784c3
core: update copyright dates
2023-01-01 14:54:35 +01:00
Sébastien Helleu
baab9cc7c5
core: add option unicode in command /debug
2022-11-21 20:45:41 +01:00
Sébastien Helleu
26e6fdc645
api: add function file_compress
2022-09-27 20:49:12 +02:00
Sébastien Helleu
01cf98e8fb
core: add key alt+backspace, change behavior of key ctrl+w ( closes #559 )
...
The key ctrl+w now deletes one word until whitespace.
The new key alt+backspace deletes one word (same behavior as ctrl+w in previous
releases).
2022-09-18 23:26:49 +02:00