openresty / luajit2

OpenResty's Branch of LuaJIT 2
https://luajit.org/luajit.html
Other
1.2k stars 193 forks source link

How do I use the tests in the t directory? #226

Open IlyaIndigo opened 2 months ago

IlyaIndigo commented 2 months ago

How to use perl tests in the t directory? I found perl tests in the t directory, but no instructions on how to use them.

1 I intuitively understood correctly that for testing I need to install 3 packages

BuildRequires: perl-IPC-Run3
BuildRequires: perl-Test-Base
BuildRequires: perl-Test-LongString

And run perl t/TestLJ.pm

%check
perl t/TestLJ.pm

https://build.opensuse.org/package/show/home:13ilya/luajit2 The tests pass, but they just return true, with no test log. I decided to ask if I'm doing it right, maybe I need to pass t-files in the parameters or something else?

2 What is the minimum version of perl they work with? 5.26 is too old, but they work with 5.38.