ExpressionAnalysis/ea-utils

Fails to compile: can't locate t/test-prep.pl, test errors

Opened this issue ยท 4 comments

Hi,

I've cloned your repo and attempted to build with:

make

This fails with the following messages at the end of the run:

g++ -O3 -I. fastq-lib.cpp tidx/tidx-lib.cpp -o varcall varcall.cpp -lgsl -lgslcblas
prove -j 4 t
Can't locate t/test-prep.pl in @inc (@inc contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at t/mcf.t line 5.
t/mcf.t .... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
===( 0;0 0/? 0/? )==============================================Can't locate t/test-prep.pl in @inc (@inc contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at t/join.t line 5.
t/join.t ... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/multx.t .. Can't locate t/test-prep.pl in @inc (@inc contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at t/multx.t line 5.
t/multx.t .. Dubious, test returned 2 (wstat 512, 0x200)
No subtests run

Test Summary Report

t/mcf.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/join.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/multx.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=3, Tests=0, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.05 cusr 0.00 csys = 0.07 CPU)
Result: FAIL
Makefile:57: recipe for target 'check' failed

test-prep.pl is present in the t/ directory of the repository, and I'm running make from the root directory of the repository.

I'm running on:

Linux 4.7.0-1-amd64 #1 SMP Debian 4.7.8-1 (2016-10-19) x86_64 GNU/Linux
libgsl-dev 2.2.1+dfsg-1

Thanks for any suggestions!

Tyler

As a workaround, changing the require lines in the test files t/multx.t, t/join.t, t/mcf.t from

require (dirname(__FILE__) . "/test-prep.pl");

to

require "/path/to/test-prep.pl"

Seems to work. I don't know anything about perl or prove, so I don't know why this is the case. I'm using:

This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-gnu-thread-multi

Perfect this worked for me too!

I just had to add a semicolon at the end.

Affects me too on Ubuntu 20.04.

This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux-gnu-thread-multi
(with 50 registered patches, see perl -V for more detail)
t/multx.t .. Can't locate t/test-prep.pl in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at t/multx.t line 5

BTW I fixed this error by executing this command before doing make (in the ea-utils-1.04.807/clipper directory):

export PERL5LIB=`pwd`

@asaushkin

Thank you so much. I was trying to install on macOS 11.6 (Big Sur) and encountered the same problem. Running the export line before running make solved the problem of not recognizing the paths for the testfiles.


Jason.