Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Yichun Zhang (agentzh) 311539270b tests: removed the useless "use lib" directives from the Perl test files. thanks Markus Linnala for the report in #464. 2015-10-08 17:13:16 +08:00
Yichun Zhang (agentzh) 04a7a2cca8 use Test::Nginx::Socket::Lua from the test-nginx project in our test suite. 2013-12-05 14:46:51 -08:00
Yichun Zhang (agentzh) 91d701d199 updated tests to reflect the fix in commit ccb0cbe0d. 2013-11-04 16:46:48 -08:00
agentzh (Yichun Zhang) f20bc66109 added custom test scaffold t::TestNginxLua which subclasses Test::Nginx::Socket. it supports the environment TEST_NGINX_INIT_BY_LUA which can be used to add more custom Lua code to the value of the init_by_lua directive in the nginx configuration. 2013-05-08 21:03:04 -07:00
agentzh (Yichun Zhang) 31a80431cc fixed some expected error messages in the ngx.re test cases for Lua implementations of the ngx_lua API like lua-resty-core. 2013-05-07 18:55:04 -07:00
agentzh (Yichun Zhang) 35e6a65f9f change: made the error messages for regex compilation failures less verbose. 2013-05-07 18:07:41 -07:00
agentzh (Yichun Zhang) 3ea32c9693 api-change: the ngx.re.match, ngx.re.gmatch, ngx.re.sub, and ngx.re.gsub functions used to throw Lua exceptions aggressively for all the error conditions; now they return an additonal string describing the error for almost all common errors instead of throwing exceptions, including pcre compile-time and exec-time failures. thanks Matthieu Tourne for requesting this change. 2013-03-17 20:16:05 -07:00
agentzh (Yichun Zhang) a6d8faf2bb feature: implemented named subpatterns for ngx.re.match, ngx.re.gmatch, ngx.re.sub, and ngx.re.gsub; also added new regex option "D" to allow duplicate named subpatterns. thanks Ray Bejjani for the patch in github pull #182. 2013-01-23 18:26:58 -08:00
agentzh (章亦春) b0f1582325 fixed the test cases regarding invalid escape sequences for LuaJIT 2.0.0 beta9. 2011-12-25 21:41:11 +08:00
agentzh (章亦春) 4db4603b17 fixed a gcc compilation warning for pcre < 8.20. 2011-11-20 23:06:42 +08:00
agentzh (章亦春) cc12d56e7a now we add "ngx" and "ndk" table into package.loaded such that the user can write "local ngx = require 'ngx'" and "local ndk = require 'ndk'". thanks @Lance. 2011-08-27 21:45:34 +08:00
agentzh (章亦春) 59eba8b24e implemented the "o" regex option for ngx.re.sub(). 2011-08-27 19:04:16 +08:00