[Ludiafuncs-hackers] Add regression tests

Back to archive index

ishii****@nttda***** ishii****@nttda*****
2015年 9月 3日 (木) 10:43:17 JST


> On Mon, Aug 31, 2015 at 7:35 PM,  <ishii****@nttda*****> wrote:
> >>
> >> 1. when we reduce norm_cache_limit and request is lower than former limit,
> >>   this module gets cache again with lower size.
> >> SET ludia_funcs.enable_debug TO on;
> >> SET client_min_messages TO LOG;
> >> SET ludia_funcs.norm_cache_limit TO '2kB'; SELECT
> >> pgs2norm(repeat('X',700)); SELECT pgs2norm(repeat('Y',700)); SET
> >> ludia_funcs.norm_cache_limit TO '1kB'; SELECT
> >> pgs2norm(repeat('X',200)); SELECT pgs2norm(repeat('Y',200));
> >>
> >> 2. when we reduce norm_cache_limit and request is same as last
> >> request, lower than former limit,
> >>   this module returns cache.
> >> SET ludia_funcs.enable_debug TO on;
> >> SET client_min_messages TO LOG;
> >> SET ludia_funcs.norm_cache_limit TO '2kB'; SELECT
> >> pgs2norm(repeat('X',700)); SET ludia_funcs.norm_cache_limit TO '1kB';
> >> SELECT pgs2norm(repeat('X',700));
> >>
> >> 3. If there is cached senna query, this module uses cache.
> >> SELECT pgs2snippet1(1,300,1,'∇','∇',0,'エおA','あ?う?おabcdeか?
> >> く?こjklmn');
> >> SELECT pgs2snippet1(1,300,1,'∇','∇',0,'エおA','あ?う?おabcdeか?
> >> く?こjklmn');
> >>
> >
> > Sorry, I made mistake.
> > The following is the correct information.
> > 1)
> > SELECT pgs2norm(repeat('X',700));
> > SELECT pgs2norm(repeat('Y',700));
> > SET ludia_funcs.norm_cache_limit TO '1kB'; SELECT
> > pgs2norm(repeat('X',200)); SELECT pgs2norm(repeat('Y',200));
> >
> > 2)
> > SET ludia_funcs.norm_cache_limit TO '2kB'; SELECT
> > pgs2norm(repeat('X',700)); SET ludia_funcs.norm_cache_limit TO '1kB';
> > SELECT pgs2norm(repeat('X',700));
> >
> > 3)
> > SELECT pgs2snippet1(1,300,1,'∇','∇',0,'エおA','あイうエおabcdeか
> キくケこjklmn');
> > SELECT pgs2snippet1(1,300,1,'∇','∇',0,'エおA','あイうエおabcdeか
> キくケこjklmn');
> >
> > I attached these patch.
> 
> Thanks for the patch! Applied the modified version of the patch.

Thank you for modify and commit.
I applied new code, and passed all test.
I think this pgs2-debug regression tests cover all condition.

Regards,

--
Ayumi Ishii




Ludiafuncs-hackers メーリングリストの案内
Back to archive index