[Tarantool-patches] [PATCH v2 luajit 03/30] test: adapt Lua 5.1 suite for out-of-source build

Sergey Kaplun skaplun at tarantool.org
Thu Apr 1 11:40:43 MSK 2021


Igor,

Thanks for the review!

On 01.04.21, Igor Munkin wrote:
> Sergey,
> 
> Thanks for the patch! Honestly, I'm not fond of the solution you
> implemented, though it allows to make as little changes as possible.
> I propose to implement something similar to the solution you've made
> within lua-Harness series:
> * You need two <dofile> functions: one for launching source files for
>   additional checks and another one for running temporary Lua chunks.
> * You also need two <loadstring> functions for the same reason.
> 
> Mind the fact <dofile> is implemented via <loadstring>, so basically,
> there might be no so much changes made for <dofile>. Thoughts?

I prefer to use one function, and two wrappers around it.
For example, let it be `absolute_dofile()` and `cwd_dofile()`.

But honestly, it is not the single one problem of this suite (no test
isolation, global variables, huge excess output, hardcoded limit
values, etc).
It looks like we need to refactor this suite later (plus adapt test
for LuaJIT extensions from Lua 5.2+). I propose to do all this work
via that refactoring, not now. Otherwise, it looks like a patch, which
will still need to be refactored later.

Thoughts?

> 
> -- 
> Best regards,
> IM

-- 
Best regards,
Sergey Kaplun


More information about the Tarantool-patches mailing list