Skip to content

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

@13ilya-old

Description

@13ilya-old

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions