Subject: | Test suite fails in various ways on old Red Hat/Fedora distributions |
Whilst trying to update various boxes at $WORKPLACE, I've found that I
can only get the testsuite to run in my RPM packages of Module::Build in
Fedora Core 4 and 5. On older distributions, the testsuite fails in a
variety of different ways:
Fedora Core 3 (perl 5.8.5):
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.76939
+ umask 022
+ cd /nis-home/phowarth/BUILD/BUILD
+ cd Module-Build-0.2801
+ TEST_SIGNATURE=0
+ ./Build test
t/basic...........ok
t/compat..........ok 2/60Couldn't run Build.PL: Argument list too long
at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
t/compat..........NOK 3# Failed test (t/compat.t at line 180)
t/compat..........NOK 4# Failed test (t/compat.t at line 181)
make: *** No targets specified and no makefile found. Stop.
t/compat..........NOK 5# Failed test (t/compat.t at line 56)
make: *** No rule to make target `test'. Stop.
t/compat..........NOK 6# Failed test (t/compat.t at line 63)
t/compat..........NOK 7# Failed test (t/compat.t at line 64)
# 'MAKE TEST
# '
# doesn't match '(?-xism:DONE\.|SUCCESS)'
make: *** No rule to make target `realclean'. Stop.
t/compat..........NOK 8# Failed test (t/compat.t at line 66)
Couldn't run Build.PL: Argument list too long at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
t/compat..........NOK 9# Failed test (t/compat.t at line 180)
t/compat..........NOK 10# Failed test (t/compat.t at line 181)
make: *** No rule to make target `realclean'. Stop.
t/compat..........ok 12/60Couldn't run Build.PL: Argument list too long
at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
t/compat..........NOK 13# Failed test (t/compat.t at line 180)
t/compat..........NOK 14# Failed test (t/compat.t at line 181)
make: *** No targets specified and no makefile found. Stop.
t/compat..........NOK 15# Failed test (t/compat.t at line 56)
make: *** No rule to make target `test'. Stop.
t/compat..........NOK 16# Failed test (t/compat.t at line 63)
t/compat..........NOK 17# Failed test (t/compat.t at line 64)
# 'MAKE TEST
# '
# doesn't match '(?-xism:DONE\.|SUCCESS)'
make: *** No rule to make target `realclean'. Stop.
t/compat..........NOK 18# Failed test (t/compat.t at line 66)
Couldn't run Build.PL: Argument list too long at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
t/compat..........NOK 19# Failed test (t/compat.t at line 180)
t/compat..........NOK 20# Failed test (t/compat.t at line 181)
make: *** No rule to make target `realclean'. Stop.
t/compat..........NOK 38# Failed test (t/compat.t at line 101)
# 'Couldn't run Build.PL: Argument list too long at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
# '
# doesn't match '(?-xism:Foo/Builder.pm)'
t/compat..........NOK 41# Failed test (t/compat.t at line 101)
# 'Couldn't run Build.PL: Argument list too long at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
# '
# doesn't match '(?-xism:Foo/Builder.pm)'
t/compat..........ok 42/60Couldn't run Build.PL: Argument list too long
at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
t/compat..........NOK 43# Failed test (t/compat.t at line 109)
t/compat..........ok 44/60Couldn't run Build.PL: Argument list too long
at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
t/compat..........NOK 45# Failed test (t/compat.t at line 109)
Couldn't run Build.PL: Argument list too long at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
t/compat..........NOK 46# Failed test (t/compat.t at line 126)
t/compat..........NOK 48# Failed test (t/compat.t at line 130)
# got: 'site'
# expected: 'core'
t/compat..........NOK 49# Failed test (t/compat.t at line 131)
# got: undef
# expected: '1'
t/compat..........NOK 50# Failed test (t/compat.t at line 132)
# got: '/usr/lib/perl5/site_perl/5.8.5'
# expected:
'/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/t/libdir'
t/compat..........NOK 51# Failed test (t/compat.t at line 133)
# got: undef
# expected: '-DPERL_POLLUTE'
make: *** No rule to make target `test'. Stop.
t/compat..........NOK 52# Failed test (t/compat.t at line 138)
t/compat..........NOK 53# Failed test (t/compat.t at line 140)
# '# make test
# '
# doesn't match '(?-xism:(?:# ok \d+\s+)+)'
make: *** No rule to make target `test'. Stop.
t/compat..........NOK 54# Failed test (t/compat.t at line 144)
t/compat..........NOK 55# Failed test (t/compat.t at line 146)
# '# make test TEST_VERBOSE=0
# '
# doesn't match '(?-xism:(?:# .+basic\.+ok\s+(?:[\d.]+\s*m?s\s*)?)#
All tests)'
t/compat..........ok 56/60make: *** No rule to make target `realclean'.
Stop.
t/compat..........ok 58/60Couldn't run Build.PL: Argument list too long
at
/nis-home/phowarth/BUILD/BUILD/Module-Build-0.2801/blib/lib/Module/Build/Compat.pm
line 200.
t/compat..........NOK 59# Failed test (t/compat.t at line 168)
t/compat..........ok 60/60make: *** No rule to make target `realclean'.
Stop.
# Looks like you failed 30 tests of 60.
t/compat..........dubious
Test returned status 30 (wstat 7680, 0x1e00)
DIED. FAILED tests 3-10, 13-20, 38, 41, 43, 45-46, 48-55, 59
Failed 30/60 tests, 50.00% okay
Red Hat Linux 9 (perl 5.8.0)
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.92020
+ umask 022
+ cd /nis-home/phowarth/BUILD/BUILD
+ cd Module-Build-0.2801
+ TEST_SIGNATURE=0
+ ./Build test
Can't locate the perl binary used to run this script in (/usr/bin
/usr/bin /usr/bin /usr/local/bin /usr/kerberos/bin /bin /usr/bin
/usr/X11R6/bin)
error: Bad exit status from /var/tmp/rpm-tmp.92020 (%check)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.92020 (%check)
Unfortunately my perl skills aren't sufficiently honed for me to be able
to diagnose these issues myself. In all cases though, the only perl on
the system is /usr/bin/perl.