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
8a32249507
javascript: fix detection of libv8 with autotools on Ubuntu Trusty
2017-10-07 21:43:18 +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
003f5de16b
tests: fix compilation of tests with autotools
2017-10-07 18:45:02 +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
Sébastien Helleu
137d5863e2
tests: run command "/debug libs" in tests instead of Travis CI command
2017-10-01 08:00:39 +02:00
Sébastien Helleu
e317a6856c
tests: add PHP plugin in tests
2017-09-03 21:49:48 +02:00
Sébastien Helleu
c65137667b
tests: improve tests on dynamic strings
2017-08-20 11:26:23 +02:00
Sébastien Helleu
16661b0cbe
tests: display an error if the required locale en_US.UTF-8 is not installed
2017-07-23 15:12:40 +02:00
Sébastien Helleu
8efbf61e66
tests: fix load of plugins in tests after a build with autotools
2017-07-05 21:33:19 +02:00
Linus Heckemann
d6c1d02eca
core: search WEECHAT_EXTRA_LIBDIR for plugins ( closes #971 , issue #979 )
...
In addition to searching the statically configured WEECHAT_LIBDIR
(weechat's installation directory) for plugins, search the path
given in the environment variable WEECHAT_EXTRA_LIBDIR. This makes
departing from the FHS standard while keeping the plugins packaged
separately easier. This change was made specifically with the Nix
package manager in mind, but can easily be used by others.
2017-07-05 19:52:48 +02:00
Sébastien Helleu
5e48b50da8
tests: fix double load of plugins when "make install" is executed before tests
2017-07-05 19:41:11 +02:00
Sébastien Helleu
a59ce8331a
tests: load plugins from build directory instead of installed libdir
...
This allows to run tests without running "make install".
2017-07-04 22:14:44 +02:00
Sébastien Helleu
b879df09b5
tests: check that fset plugin is loaded
2017-06-25 16:35:28 +02:00
Simmo Saan
1329dfb57a
core: add wildcard matching operators to eval ( closes #608 )
2017-04-29 17:04:44 +02:00
Sébastien Helleu
5b78cb2a7b
tests: fix compilation warning on FreeBSD
2017-04-26 22:28:03 +02:00
Sébastien Helleu
112bebcddf
core: add a way to count the suffix length in max chars displayed in cut of string ("cut:" and "cutscr:") ( closes #963 )
...
The format to use is one of:
- ${cut:+max,suffix,string}
- ${cutscr:+max,suffix,string}
With the "+" before max, WeeChat ensures there are at most "max" chars in
output, including the length of suffix string.
2017-04-24 22:37:49 +02:00
Sébastien Helleu
94355e2e38
core: ensure length is not negative in function string_strndup
2017-04-22 15:15:54 +02:00
Sébastien Helleu
6ab7af705e
tests: fix tests on dynamic strings
2017-04-01 12:16:12 +02:00
Sébastien Helleu
bb00b6b8fb
core: add ${re:#} to get the index of last group captured in evaluation of expressions
2017-03-30 22:13:14 +02:00
Sébastien Helleu
467f482ea6
core: make "callback_cmp" optional in call to function arraylist_new()
...
If no callback is given, a default callback is used, which just compares
pointers.
2017-03-30 20:35:16 +02:00
Sébastien Helleu
eb2d0ac58a
tests: add tests on combining characters in cut/cutscr (evaluation of expression)
2017-03-28 22:09:11 +02:00
Sébastien Helleu
3045021430
core: fix cut of chars in "cutscr" of evaluated strings
...
This fixes two problems:
- stop before max char displayed with wide chars
- preserve combining chars in the output
Before the fix (wrong):
>> ${cutscr:3,+,こんにちは世界}
== [こん+]
>> ${cutscr:1,+,a${\u0308}}
== [a+]
After the fix (OK):
>> ${cutscr:3,+,こんにちは世界}
== [こ+]
>> ${cutscr:1,+,a${\u0308}}
== [ä]
2017-03-28 20:45:31 +02:00
Sébastien Helleu
f99c866f35
core: add cut of string with max chars displayed in evaluation of expressions
...
The syntax is: ${cutscr:max,suffix,string}.
The string is cut after max chars displayed on screen. If the string is cut,
the optional suffix is added after.
2017-03-27 21:14:51 +02:00
Sébastien Helleu
9a8ec36cbd
core: add cut of string in evaluation of expressions
...
The syntax is: ${cut:max,suffix,string}.
The string is cut after max chars. If the string is cut, the optional suffix is
added after.
2017-03-25 14:19:48 +01:00
Sébastien Helleu
edfeb60e32
buflist: new plugin "buflist" (bar with list of buffers)
2017-03-25 14:18:19 +01:00
Sébastien Helleu
83117f8d2a
core: add ternary operator (condition) in evaluation of expressions
2017-03-25 14:18:19 +01:00
Sébastien Helleu
07d16903f3
api: add dynamic string functions (string_dyn_*)
...
New functions:
- string_dyn_alloc
- string_dyn_copy
- string_dyn_concat
- string_dyn_free
2017-03-25 14:18:19 +01:00
Sébastien Helleu
1361602ea5
tests: fix compilation of tests on FreeBSD 11
...
Some includes were missing in .h files, and the tests must be linked
with intl and execinfo on FreeBSD.
2017-01-13 20:57:59 +01:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Andrew Potter
54ee5e0576
tests: add wattr_get/set to fake
2016-10-02 09:51:28 -07:00
Sébastien Helleu
54841f6294
api: fix return of function string_match() when there are multiple masks in the string (issue #812 )
...
Some tests are added as well to test the multiple masks in the string.
2016-10-02 08:58:19 +02:00
Sébastien Helleu
e218db3582
tests: add test on the "extra" option on function eval_expression()
2016-08-18 22:11:50 +02:00
Sébastien Helleu
eb86def400
core: rename function string_iconv_fprintf to string_fprintf
2016-07-09 18:28:03 +02:00
Sébastien Helleu
22c0966387
tests: add tests on function string_split_command()
2016-05-14 09:14:08 +02:00