Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test fails #4

Open
phinjensen opened this issue Jun 24, 2013 · 2 comments
Open

make test fails #4

phinjensen opened this issue Jun 24, 2013 · 2 comments

Comments

@phinjensen
Copy link

ID: 112
Version: unspecified
Date: 2012-09-17 07:48 EDT
Author: Rainer Rynesch ([email protected])


https://gist.github.com/uncleshelby/5852274

perl -V

rainer@rynesch ~/pgsi/pgsi-1.7.0 $ cat INSTALL 

Install pgsi like any other Perl module:

perl Makefile.PL
make
make test
make install

If you find any problems when running the above, please report them!

rainer@rynesch ~/pgsi/pgsi-1.7.0 $ perl Makefile.PL 
Checking if your kit is complete...
Looks good
Writing Makefile for pgsi
rainer@rynesch ~/pgsi/pgsi-1.7.0 $ make
cp pgsi.pl tmp/pgsi.pl
cp pgsi.pl tmp/pgsi.pl
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- tmp/pgsi.pl
Manifying tmp/pgsi.pl.1p
Manifying tmp/pgsi.3pm
Created pgsi.html
rainer@rynesch ~/pgsi/pgsi-1.7.0 $ make test
Skip tmp/pgsi.pl (unchanged)
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'tmp', 'blib/arch')" t/*.t
t/00_basic.t ....... ok   
t/00_release.t ..... skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/00_signature.t ... skipped: Set the environment variable TEST_SIGNATURE to
enable this test
t/02_pgsi.t ........ Can't locate DBI.pm in @INC (@INC contains:
/home/rainer/pgsi/pgsi-1.7.0/tmp /home/rainer/pgsi/pgsi-1.7.0/blib/arch
/etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at t/02_pgsi.t line 9.
BEGIN failed--compilation aborted at t/02_pgsi.t line 9.
t/02_pgsi.t ........ Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/99_cleanup.t ..... ok   
t/99_perlcritic.t .. skipped: Set the environment variable TEST_CRITIC to
enable this test
t/99_pod.t ......... skipped: Set the environment variable TEST_AUTHOR to
enable this test
t/99_spellcheck.t .. skipped: Set the environment variable TEST_SPELL to enable
this test
t/99_yaml.t ........ ok   

Test Summary Report
-------------------
t/02_pgsi.t      (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=9, Tests=4,  1 wallclock secs ( 0.05 usr  0.03 sys +  0.34 cusr  0.04
csys =  0.46 CPU)
Result: FAIL
Failed 1/9 test programs. 0/4 subtests failed.
make: *** [test_dynamic] Fehler 255
@phinjensen
Copy link
Author

Author: Rainer Rynesch ([email protected])
Date: 2012-09-17 07:53:05 EDT


also tested with the git version - same result

@phinjensen
Copy link
Author

Author: Collin Peters
Date: 2012-11-09 20:12:00 EST


Looks like you are missing DBI. I installed it on my debian box with sudo apt-get install libdbi-perl

It still fails for me though:
Could not open 'pgsi_test_database/postgresql.conf": No such file or directory

intouch@monitoring1:~/pglogs/apps/pgsi-1.7.0 make test
Skip tmp/pgsi.pl (unchanged)
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'tmp', 'blib/arch')" t/*.t
t/00_basic.t ....... ok   
t/00_release.t ..... skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/00_signature.t ... skipped: Set the environment variable TEST_SIGNATURE to
enable this test
t/02_pgsi.t ........ 1/6 # Creating test database cluster in pgsi_test_database
Could not open "pgsi_test_database/postgresql.conf": No such file or directory
# Looks like you planned 6 tests but ran 1.
# Looks like your test exited with 2 just after 1.
t/02_pgsi.t ........ Dubious, test returned 2 (wstat 512, 0x200)
Failed 5/6 subtests 
t/99_cleanup.t ..... ok   
t/99_perlcritic.t .. skipped: Set the environment variable TEST_CRITIC to
enable this test
t/99_pod.t ......... skipped: Set the environment variable TEST_AUTHOR to
enable this test
t/99_spellcheck.t .. skipped: Set the environment variable TEST_SPELL to enable
this test
t/99_yaml.t ........ ok   

Test Summary Report
-------------------
t/02_pgsi.t      (Wstat: 512 Tests: 1 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 6 tests but ran 1.
Files=9, Tests=5,  0 wallclock secs ( 0.04 usr  0.03 sys +  0.35 cusr  0.07
csys =  0.49 CPU)
Result: FAIL
Failed 1/9 test programs. 0/5 subtests failed.
make: *** [test_dynamic] Error 255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant