develooper Front page | perl.perl5.porters | Postings from January 2022

Re: How to run a specific test from the testsuite?

Thread Previous | Thread Next
From:
demerphq
Date:
January 4, 2022 17:20
Subject:
Re: How to run a specific test from the testsuite?
Message ID:
CANgJU+VuoW_VOY9_RAD7hu-A0p_7R-pCsZOkbMPXa+VL+hsn2g@mail.gmail.com
On Sun, 2 Jan 2022 at 23:01, Dennis Clarke via perl5-porters <
perl5-porters@perl.org> wrote:

>
> Dear Perl folks :
>
> Well for the sake of fun over the holiday season I dragged out an old
> old Sun SPARCStation 20 and played around with it. Turns out that the
> latest Perl 5.34.0 will compile just fine. Slowly. Six hours in fact.
> However it does compile fine! Then I want to see the testsuite run.
> While watching Perl 5.34.0 running the testsuite I was surprised
> to see :
>
> .
> .
> .
> cpan/autodie/t/utime ............................................. #
> Failed test 'We can utime a file just fine.'
> #   at t/utime.t line 16.
> # Can't utime(undef, undef,
> '/export/home/dclarke/local/build/perl-5.34.0_SunOS5.8_sun4m.002/cpan/autodie/t/touch_me'):
>
> Permission denied at t/utime.t line 15
> #   Failed test 'utime fails correctly on a 'true' failure.'
> #   at t/utime.t line 20.
> #          got: '0'
> #     expected: '1'
> Can't utime('1641079886', '1592175685',
> '/export/home/dclarke/local/build/perl-5.34.0_SunOS5.8_sun4m.002/cpan/autodie/t/touch_me'):
>
> Not owner at t/utime.t line 24
> # Looks like your test exited with 1 just after 4.
> FAILED at test 2
> .
> .
> .
>
> I am curious if there is a magic incantation wherein I can see the
> details of that test verbosely?


IIRC:

TEST_ARGS="-v -re utime" make test_harness

Check the Makefile for `make test_reonly` and see what it does, i believe
it boils down to the above.

Yves

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About