Or just use prove:

prove -vb t/testname.t

-v is verbose
-b is "use blib"
On Dec 24, 2011 12:41 PM, "Douglas Hunt" <[email protected]> wrote:

> Hi Puneet:  To get it to print anything, you have to run the perl test
> line with 'test_harness(1, 'blib/lib',..).  What I always do is:
>
> $ make test
>
> Then cut and paste the test invocation line with 'test_harness(1, ...':
>
> $ PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
>
> This will print out all stdout from the tests.
>
> Regards,
>
>  Doug
>
>
> On Thu, 22 Dec 2011, Puneet Kishor wrote:
>
>  Sadly, that doesn't do anything. I don't get any value printed out...
>> just the failure report
>>
>>
>> 172>  my %m = $data->kmeans({NCLUS=>2, NTRY=>10, V=>0});
>> 173>  print $m{ms}->sumover;
>> 174>  return sum( $m{ms}->sumover - pdl qw( 1.5  1.9166667  1.9166667 ) );
>>
>>
>> punkish@mumbai ~/Projects/PDL-Stats-0.5.5$**make test
>> PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e"
>> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>> t/stats_basic.t ..... ok
>> t/stats_glm.t ....... ok
>> t/stats_kmeans.t .... 1/18
>> #   Failed test at t/stats_kmeans.t line 168.
>> #          got: ''
>> #     expected: '1'
>> # Looks like you failed 1 test of 18.
>> t/stats_kmeans.t .... Dubious, test returned 1 (wstat 256, 0x100)
>> Failed 1/18 subtests
>> t/stats_ols_rptd.t .. ok
>> t/stats_ts.t ........ ok
>>
>> Test Summary Report
>> -------------------
>> t/stats_kmeans.t  (Wstat: 256 Tests: 17 Failed: 0)
>>  Non-zero exit status: 1
>>  Parse errors: Tests out of sequence.  Found (14) but expected (13)
>>               Tests out of sequence.  Found (15) but expected (14)
>>               Tests out of sequence.  Found (16) but expected (15)
>>               Tests out of sequence.  Found (17) but expected (16)
>>               Tests out of sequence.  Found (18) but expected (17)
>> Displayed the first 5 of 6 TAP syntax errors.
>> Re-run prove with the -p option to see them all.
>> Files=5, Tests=146,  1 wallclock secs ( 0.04 usr  0.01 sys +  0.91 cusr
>>  0.03 csys =  0.99 CPU)
>> Result: FAIL
>> Failed 1/5 test programs. 0/146 subtests failed.
>> make: *** [test_dynamic] Error 255
>>
>>
>>
>>
>> On Dec 22, 2011, at 7:01 PM, Maggie X wrote:
>>
>>  David Merten had just reported problem with OS X Lion and
>>> stats_kmeans.plas well. Unfortunate I don't have a mac. For a start
>>> can you do me a favor
>>> and add this line between  172 and 173
>>>
>>> 172>   my %m = $data->kmeans({NCLUS=>2, NTRY=>10, V=>0});
>>>
>>> print $m{ms}->sumover;
>>>
>>> 173>   return sum( $m{ms}->sumover - pdl qw( 1.5  1.9166667  1.9166667 )
>>> );
>>>
>>>
>>> Best,
>>> Maggie
>>>
>>>
>>> On Thu, Dec 22, 2011 at 7:48 PM, Puneet Kishor <[email protected]>
>>> wrote:
>>>
>>>  Inspired by the lovely blurb below, I tried to install PDL::Stats but
>>>> failed. Here is the relevant bit from the log of my failed attempt --
>>>>
>>>> ----
>>>> PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e"
>>>> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>>>> t/stats_basic.t ..... ok
>>>> t/stats_glm.t ....... ok
>>>>
>>>> #   Failed test at t/stats_kmeans.t line 168.
>>>> #          got: ''
>>>> #     expected: '1'
>>>> # Looks like you failed 1 test of 18.
>>>> t/stats_kmeans.t ....
>>>> Dubious, test returned 1 (wstat 256, 0x100)
>>>> Failed 1/18 subtests
>>>> t/stats_ols_rptd.t .. ok
>>>> t/stats_ts.t ........ ok
>>>>
>>>> Test Summary Report
>>>> -------------------
>>>> t/stats_kmeans.t  (Wstat: 256 Tests: 18 Failed: 1)
>>>> Failed test:  13
>>>> Non-zero exit status: 1
>>>> Files=5, Tests=147,  1 wallclock secs ( 0.03 usr  0.01 sys +  0.91 cusr
>>>> 0.04 csys =  0.99 CPU)
>>>> Result: FAIL
>>>> Failed 1/5 test programs. 1/147 subtests failed.
>>>> make: *** [test_dynamic] Error 255
>>>> -> FAIL Installing PDL::Stats failed. See
>>>> /Volumes/roller/Users/punkish/**.cpanm/build.log for details.
>>>> ----
>>>>
>>>>
>>>> Here is line 168 (test #13) from t/stats_kmeans.t
>>>>
>>>> 168> is(tapprox( t_kmeans_bad(), 0 ), 1);
>>>> 169> sub t_kmeans_bad {
>>>> 170>   my $data = sequence 7, 3;
>>>> 171>   $data = $data->setbadat(4,0);
>>>> 172>   my %m = $data->kmeans({NCLUS=>2, NTRY=>10, V=>0});
>>>> 173>   return sum( $m{ms}->sumover - pdl qw( 1.5  1.9166667  1.9166667
>>>> ) );
>>>> 174> }
>>>>
>>>>
>>>> I am on Mac OS X Lion with Perl 5.14.1 and PDL 2.4.6 installed via
>>>> MacPorts
>>>>
>>>>
>>>> On Dec 22, 2011, at 3:26 PM, Maggie X wrote:
>>>>
>>>>  Hi Chris,
>>>>>
>>>>> Thanks for including the info! Here's the blurb for PDL::Stats.
>>>>>
>>>>> --------------
>>>>> This is a collection of statistics modules in Perl Data Language, with
>>>>> a
>>>>> quick-start guide for non-PDL people.
>>>>>
>>>>> They make perldl--the simple shell for PDL--work like a teenie weenie
>>>>> R,
>>>>> but with PDL threading--"the fast (and automagic) vectorised iteration
>>>>> of
>>>>> 'elementary operations' over arbitrary slices of multidimensional
>>>>>
>>>> data"--of
>>>>
>>>>> procedures including t-test, ordinary least squares regression, and
>>>>>
>>>> k-means
>>>>
>>>>> clustering.
>>>>> ---------------
>>>>>
>>>>> Best,
>>>>> Maggie
>>>>>
>>>>> ..
>>>>>
>>>>
>>>>
>>>>
>>
>> ______________________________**_________________
>> Perldl mailing list
>> [email protected]
>> http://mailman.jach.hawaii.**edu/mailman/listinfo/perldl<http://mailman.jach.hawaii.edu/mailman/listinfo/perldl>
>>
>>
> ______________________________**_________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.**edu/mailman/listinfo/perldl<http://mailman.jach.hawaii.edu/mailman/listinfo/perldl>
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to