Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip test when cross-compiling #13438

Closed
p5pRT opened this issue Nov 22, 2013 · 4 comments
Closed

Skip test when cross-compiling #13438

p5pRT opened this issue Nov 22, 2013 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Nov 22, 2013

Migrated from rt.perl.org#120615 (status was 'resolved')

Searchable as RT120615$

@p5pRT
Copy link
Author

p5pRT commented Nov 22, 2013

From @fperrad

Created by @fperrad

The toolchain is not installed on the target when cross-compiling.
So, this test must be skipped, see patch below.
(same problem as RT#119769 and RT#120398)

[PATCH] skip dist/ExtUtils-Install/t/InstallWithMM.t when cross-compiling

Signed-off-by​: Francois Perrad <francois.perrad@​gadz.org>

diff --git a/dist/ExtUtils-Install/t/InstallWithMM.t
b/dist/ExtUtils-Install/t/InstallWithMM.t
index 4b2c439..0d58d3c 100644
--- a/dist/ExtUtils-Install/t/InstallWithMM.t
+++ b/dist/ExtUtils-Install/t/InstallWithMM.t
@​@​ -10,9 +10,13 @​@​
use Config;
use ExtUtils​::MakeMaker;

-use Test​::More tests => 15;
use MakeMaker​::Test​::Utils;
use MakeMaker​::Test​::Setup​::BFD;
+use IPC​::Cmd qw(can_run);
+use Test​::More
+ can_run(make())
+ ? (tests => 15)
+ : (skip_all => "make not available");
use File​::Find;
use File​::Spec;
use File​::Path;

Perl Info

Flags:
    category=core
    severity=low

Site configuration information for perl 5.18.1:

Configured by user at Mon Oct 28 15:34:14 CET 2013.

Summary of my perl5 (revision 5 version 18 subversion 1) configuration:

  Platform:
    osname=linux, osvers=3.2.0-55-generic, archname=i686-linux
    uname='linux ubuntu 3.2.0-55-generic #85-ubuntu smp wed oct 2
13:43:27 utc 2013 i686 i686 i386 gnulinux '
    config_args='-de
-Dprefix=/home/user/perl5/perlbrew/perls/perl-5.18.1
-Aeval:scriptdir=/home/user/perl5/perlbrew/perls/perl-5.18.1/bin'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.6.3', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/i386-linux-gnu /lib/../lib
/usr/lib/i386-linux-gnu /usr/lib/../lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.15'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'

Locally applied patches:



@INC for perl 5.18.1:
    /home/user/perl5/perlbrew/perls/perl-5.18.1/lib/site_perl/5.18.1/i686-linux
    /home/user/perl5/perlbrew/perls/perl-5.18.1/lib/site_perl/5.18.1
    /home/user/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1/i686-linux
    /home/user/perl5/perlbrew/perls/perl-5.18.1/lib/5.18.1
    .


Environment for perl 5.18.1:
    HOME=/home/user
    LANG=en_US.UTF-8
    LANGUAGE=en_US:en
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/user/perl5/perlbrew/bin:/home/user/perl5/perlbrew/perls/perl-5.18.1/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    PERLBREW_BASHRC_VERSION=0.66
    PERLBREW_HOME=/home/user/.perlbrew
    PERLBREW_MANPATH=/home/user/perl5/perlbrew/perls/perl-5.18.1/man
    PERLBREW_PATH=/home/user/perl5/perlbrew/bin:/home/user/perl5/perlbrew/perls/perl-5.18.1/bin
    PERLBREW_PERL=perl-5.18.1
    PERLBREW_ROOT=/home/user/perl5/perlbrew
    PERLBREW_VERSION=0.66
    PERL_BADLANG (unset)
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented Nov 23, 2013

From @jkeenan

On Fri Nov 22 07​:46​:04 2013, fperrad wrote​:

This is a bug report for perl from francois.perrad@​gadz.org,
generated with the help of perlbug 1.39 running under perl 5.18.1.

-----------------------------------------------------------------
[Please describe your issue here]

The toolchain is not installed on the target when cross-compiling.
So, this test must be skipped, see patch below.
(same problem as RT#119769 and RT#120398)

[PATCH] skip dist/ExtUtils-Install/t/InstallWithMM.t when cross-
compiling

Signed-off-by​: Francois Perrad <francois.perrad@​gadz.org>

diff --git a/dist/ExtUtils-Install/t/InstallWithMM.t
b/dist/ExtUtils-Install/t/InstallWithMM.t
index 4b2c439..0d58d3c 100644
--- a/dist/ExtUtils-Install/t/InstallWithMM.t
+++ b/dist/ExtUtils-Install/t/InstallWithMM.t
@​@​ -10,9 +10,13 @​@​
use Config;
use ExtUtils​::MakeMaker;

-use Test​::More tests => 15;
use MakeMaker​::Test​::Utils;
use MakeMaker​::Test​::Setup​::BFD;
+use IPC​::Cmd qw(can_run);
+use Test​::More
+ can_run(make())
+ ? (tests => 15)
+ : (skip_all => "make not available");
use File​::Find;
use File​::Spec;
use File​::Path;

Applied in commit 311e7a8. Keep those patches coming, François!

@p5pRT
Copy link
Author

p5pRT commented Nov 23, 2013

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Nov 23, 2013

@jkeenan - Status changed from 'open' to 'resolved'

@p5pRT p5pRT closed this as completed Nov 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant