43 Commits

Author SHA1 Message Date
Sébastien Helleu
0f9640a5f3 core: split WeeChat home in 4 directories, use XDG directories by default (issue #1285)
The 4 directories (which can be the same):

- config: configuration files, certificates
- data: log/upgrade files, local plugins, scripts, xfer files
- cache: script repository, scripts downloaded (temporary location)
- runtime: FIFO pipe, relay UNIX sockets
2021-05-11 21:06:34 +02:00
Sébastien Helleu
611ea27edc tests: disable pylint error useless-object-inheritance 2021-03-19 09:14:59 +01:00
Sébastien Helleu
efc7a588d6 core: update copyright dates 2021-01-02 21:34:16 +01:00
Sébastien Helleu
579af1b265 tests: fix compilation with CppUTest ≥ 4.0
MemoryLeakWarningPlugin::turnOnNewDeleteOverloads is replaced by
MemoryLeakWarningPlugin::turnOnThreadSafeNewDeleteOverloads, which is available
in both CppUTest 3.x and 4.0.
2020-08-29 10:18:50 +02:00
Sébastien Helleu
268aa631c6 api: add function string_color_code_size (issue #1547) 2020-08-22 08:55:16 +02:00
Sébastien Helleu
62ccee9505 tests: run tests on plugins only if the plugins are enabled and compiled 2020-05-17 15:29:06 +02:00
Sébastien Helleu
88bef0b1b1 core: rename functions hook_completion_{get_string|list_add} to completion_{get_string|list_add}
Old functions are kept for compatibility reasons.
2020-05-08 10:51:30 +02:00
Sébastien Helleu
2b05b64cc1 tests: fix pylint errors 2020-05-03 20:22:21 +02:00
Sébastien Helleu
9545d37ab0 tests: add tests on IRC protocol functions and some callbacks
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-11 20:53:49 +01:00
Sébastien Helleu
c6757f642f tests: fix generation of test scripts with Python 3.8 2020-03-02 21:39:27 +01:00
Sébastien Helleu
feb6258910 core: update copyright dates 2020-01-04 10:41:26 +01:00
Sébastien Helleu
c713a0e475 tests: fix scripting API tests on 32-bit arch
The problem is that on 32-bit arch (like GNU/Hurd), the number 42000000000000
is converted to 42000000000000L in Python, which is causing troubles in other
languages like Perl.

The fix is to use a smaller number. Such large size for function
string_format_size is tested in the C++ test suite anyway.
2019-03-25 00:18:55 +01:00
Sébastien Helleu
80b980b2af api: add function command_options (issue #928) 2019-02-28 20:19:18 +01:00
Sébastien Helleu
c2859096cb api: add function string_match_list 2019-02-27 07:46:22 +01:00
Sébastien Helleu
2b0057239b core: update copyright dates 2019-01-01 15:40:51 +01:00
Sébastien Helleu
4712d0bb06 core: use https for links to GNU GPL license 2018-11-29 23:16:07 +01:00
Sébastien Helleu
796859b873 core: fix copyright dates 2018-09-01 08:13:12 +02:00
Sébastien Helleu
e0cecefb0f tests: fix compiler warnings on calls to snprintf 2018-07-13 22:35:39 +02:00
Sébastien Helleu
c1dee726d5 tests: turn off memory leak detection only when testing javascript API 2018-04-13 20:57:34 +02:00
Sébastien Helleu
3c97a1abae tests: fix typo in language name 2018-04-13 20:53:34 +02:00
Sébastien Helleu
cc06b95ba7 tests: add tests on infolists 2018-04-12 19:47:42 +02:00
Sébastien Helleu
5ae557fa52 tests: fix AST return in TCL 2018-04-11 23:20:12 +02:00
Sébastien Helleu
b2344fe5d6 tests: fix AST return in PHP 2018-04-11 23:10:46 +02:00
Sébastien Helleu
cb4348df61 tests: fix AST return in Perl 2018-04-11 23:02:02 +02:00
Sébastien Helleu
6de98179bc api: add function string_format_size in scripting API 2018-04-07 13:20:58 +02:00
Sébastien Helleu
b8c6a5a2e1 tests: add tests on command/completion hooks scripting API functions 2017-10-28 13:12:00 +02:00
Sébastien Helleu
09f3edc2e6 tests: add tests on prefix and color scripting API functions 2017-10-27 01:12:35 +02:00
Sébastien Helleu
0fd1913ae8 tests: add tests on key_bind and key_unbind scripting API functions 2017-10-24 23:33:52 +02:00
Sébastien Helleu
1e6db7b489 tests: fix AST binop in Perl and Lua 2017-10-24 23:32:24 +02:00
Sébastien Helleu
4cff2322a0 tests: fix Tcl assignment 2017-10-24 23:31:51 +02:00
Sébastien Helleu
2b06b53a29 tests: add quotes in Lua tables 2017-10-24 23:30:32 +02:00
Sébastien Helleu
a97d734d8b tests: fix Ruby strings 2017-10-24 23:29:38 +02:00
Sébastien Helleu
1cace5588a tests: escape "@" in Perl strings 2017-10-24 23:04:53 +02:00
Sébastien Helleu
1d56e17b2f core: allow floating point and hexadecimal numbers in comparison of evaluated values 2017-10-17 20:43:40 +02:00
Sébastien Helleu
ff443c76b5 tests: add missing docstring 2017-10-10 20:17:15 +02:00
Sébastien Helleu
81a447dbb0 tests: add command /testapi.xx in test script, display elapsed time in scripting API tests 2017-10-10 19:43:47 +02:00
Sébastien Helleu
358297ba8f tests: fix instruction "return" in Perl/Guile/PHP output 2017-10-10 19:42:35 +02:00
Sébastien Helleu
ee6f28ef18 tests: remove unused variable 2017-10-10 19:41:34 +02:00
Sébastien Helleu
9ac3097679 tests: fix sort of Unparse classes on line number 2017-10-10 08:23:34 +02:00
Sébastien Helleu
ee19cfbf49 tests: fix scripting API tests when they are run from autotools build directory 2017-10-07 18:45:16 +02:00
Sébastien Helleu
ca2c11dea7 tests: remove useless __init__ methods 2017-10-07 18:22:33 +02:00
Sébastien Helleu
703534034d tests: fix comments 2017-10-07 17:05:42 +02:00
Sébastien Helleu
e8af853624 tests: add scripting API tests (issue #104)
Automatic tests of scripting API are made with Python scripts:

- unparse.py: convert Python code to other languages
- testapigen.py: generate scripts in all languages to test the API
- testapi.py scripting API tests
2017-10-07 16:51:25 +02:00