openresty / openresty/luajit2

How do I use the tests in the t directory?

Open
#226 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.4k
Forks
252
Avg merge
7d 11h
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with t/TestLJ.pm and the other files in the t directory, then verify how the listed Perl dependencies are used and how the test command behaves. Document the supported Perl minimum and the correct command or arguments, with a clear test result or log as the definition of done.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
documentation, testing
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.