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

How to run a specific test from the testsuite?

Thread Next
From:
Dennis Clarke via perl5-porters
Date:
January 2, 2022 22:01
Subject:
How to run a specific test from the testsuite?
Message ID:
77519e73-7d2b-f967-ca73-e851193e5d04@blastwave.org

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?  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 
/export/home/dclarke/local/build/perl-5.34.0
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
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional

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