Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Open
plantarum opened this Issue Nov 18, 2016 · 2 comments

Comments

Projects
None yet
2 participants

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

SilasK commented Jul 21, 2017

Perfect this worked for me too!

I just had to add a semicolon at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment