Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perl Manks and Gurus,
I’m stuck in getting any Perl module tested via the make test procedure generated. Here is the output of make with the verbose option activated:
/tmp/DBI-1.633>make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-
e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/
*.t
t/00simple_test.t ............... <----- here the make hangs and waits for ever !
when I hit the break key I get:
make: *** test_dynamic Quit
The test script just logs a message and is doing nothing else.
Here is the script 00simple_test.t
#!perl -w use strict; my $LOG; my $LOG_FILE = './test_log'; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(tim +e); my $timestamp = sprintf ("%4d-%02d-%02d %02d:%02d:%02d",$year+1900,$mo +n+1,$mday, $hour,$min,$sec); open ($LOG, '>', $LOG_FILE ) or die "Could not open the file $LOG_FIL +E!\n$!\n"; print $LOG "\n### START ############################################## +###########\n"; print $LOG "### $timestamp\n"; # ### Scripts that will run to check the module! # print "ok 1 - running the test $0\n"; print $LOG "ok 1 - running the test $0\n"; print $LOG "### E N D ################################################ +#########\n#"; 1;
Here is the log that was created:
/tmp/DBI-1.633>cat test_log
### START #########################################################
### 2015-02-12 17:13:21
ok 1 - running the test t/00simple_test.t
### E N D #########################################################
When I run the script it outputs this:
ok 1 - running the test t/00simple_test.t
I don’t know why the make hangs. The script itself runs o.k., writes the log entries and I think it also exits?
I have no idea if it exits or if the exit is not recognized by the TEST::HARNESS or if I stucks in the ExtUtil module or what happened during the make test run.
The verbose even shows me any indication so I think the TEST::HARNESS has the problem.
Can anybody of you help me how I can isolate this problems to look a little closer to find the root cause ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: make test hangs
by choroba (Cardinal) on Feb 12, 2015 at 16:33 UTC | |
Re: make test hangs
by syphilis (Archbishop) on Feb 12, 2015 at 23:01 UTC | |
by WolliK (Acolyte) on Feb 13, 2015 at 08:29 UTC | |
by WolliK (Acolyte) on Feb 13, 2015 at 08:31 UTC | |
by hotpelmen (Scribe) on Feb 13, 2015 at 18:56 UTC | |
by WolliK (Acolyte) on Feb 14, 2015 at 17:39 UTC | |
Re: make test hangs
by hotpelmen (Scribe) on Feb 12, 2015 at 16:46 UTC | |
by WolliK (Acolyte) on Feb 12, 2015 at 17:18 UTC | |
by davido (Cardinal) on Feb 12, 2015 at 17:56 UTC | |
by WolliK (Acolyte) on Feb 12, 2015 at 18:26 UTC | |
by syphilis (Archbishop) on Feb 12, 2015 at 22:36 UTC | |
by WolliK (Acolyte) on Feb 13, 2015 at 07:30 UTC | |
Re: make test hangs
by Khen1950fx (Canon) on Feb 13, 2015 at 20:12 UTC | |
by WolliK (Acolyte) on Feb 14, 2015 at 21:19 UTC | |
by hotpelmen (Scribe) on Feb 16, 2015 at 03:13 UTC | |
by WolliK (Acolyte) on Feb 16, 2015 at 17:00 UTC | |
by WolliK (Acolyte) on Feb 14, 2015 at 21:25 UTC | |
by Khen1950fx (Canon) on Feb 16, 2015 at 01:54 UTC | |
Re: make test hangs
by hotpelmen (Scribe) on Mar 05, 2015 at 20:15 UTC |