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

How to run a specific test from the testsuite?

Thread Next
Dennis Clarke via perl5-porters
January 2, 2022 22:01
How to run a specific test from the testsuite?
Message ID:

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, 
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', 
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?  I am very surprised to see that I am
not the owner of that file but perhaps this is because I am doing a
build "out of tree" wherein the actual sources are located in the
another path with whatever ownership was in the distribution tarball:

triton # ls -lad /export/home/dclarke/local/build/perl-5.34.0
drwxr-xr-x  25 perl     perl        5120 May 20  2021 
triton #

Yes I did create a group and user named "perl" with uid:gid equal to
1000:1000 which I saw within the extracted tarball. I am guessing that
is the reason for the test failure. Seems strange given that the test is
not going after the source path but the correct build and test path?
Otherwise I see everything is going along swimmingly.

Dennis Clarke
UNIX and Linux spoken
GreyBeard and suspenders optional

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About