Many fixes after CPANTESTERS report
[Config-Perl-V.git] / t / 25_plv516.t
blob2e48c985844812093f3da12f7e7de9eb03f738d8
1 #!/pro/bin/perl
3 use strict;
4 use warnings;
6 BEGIN {
7 use Test::More;
8 my $tests = 92;
9 unless ($ENV{PERL_CORE}) {
10 require Test::NoWarnings;
11 Test::NoWarnings->import ();
12 $tests++;
15 plan tests => $tests;
18 use Config::Perl::V;
20 ok (my $conf = Config::Perl::V::plv2hash (<DATA>), "Read perl -v block");
21 ok (exists $conf->{$_}, "Has $_ entry") for qw( build environment config inc );
23 is ($conf->{build}{osname}, $conf->{config}{osname}, "osname");
24 is ($conf->{build}{stamp}, "Mar 12 2013 08:36:17", "Build time");
25 is ($conf->{config}{version}, "5.16.3", "reconstructed \%Config{version}");
26 is ($conf->{config}{ccversion}, "", "Using gcc. non-gcc version should not be defined");
28 my $opt = Config::Perl::V::plv2hash ("")->{build}{options};
29 foreach my $o (sort qw(
30 HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
31 PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_INT
32 USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
33 USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO
34 USE_PERL_ATOF
35 )) {
36 is ($conf->{build}{options}{$o}, 1, "Runtime option $o set");
37 delete $opt->{$o};
39 foreach my $o (sort keys %$opt) {
40 is ($conf->{build}{options}{$o}, 0, "Runtime option $o unset");
43 __END__
44 Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
46 Platform:
47 osname=linux, osvers=3.4.33-2.24-desktop, archname=i686-linux-64int
48 uname='linux lx09 3.4.33-2.24-desktop #1 smp preempt tue feb 26 03:34:33 utc 2013 (5f00a32) i686 i686 i386 gnulinux '
49 config_args='-Duse64bitint -Duselongdouble -des'
50 hint=previous, useposix=true, d_sigaction=define
51 useithreads=undef, usemultiplicity=undef
52 useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
53 use64bitint=define, use64bitall=undef, uselongdouble=undef
54 usemymalloc=n, bincompat5005=undef
55 Compiler:
56 cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
57 optimize='-O2',
58 cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/pro/local/include -fno-strict-aliasing -pipe -fstack-protector -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
59 ccversion='', gccversion='4.7.1 20120723 [gcc-4_7-branch revision 189773]', gccosandvers=''
60 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
61 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
62 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
63 alignbytes=4, prototype=define
64 Linker and Libraries:
65 ld='cc', ldflags ='-L/pro/local/lib -fstack-protector'
66 libpth=/pro/local/lib /lib /usr/lib /usr/local/lib
67 libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
68 perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
69 libc=/lib/libc-2.15.so, so=so, useshrplib=false, libperl=libperl.a
70 gnulibc_version='2.15'
71 Dynamic Linking:
72 dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
73 cccdlflags='-fPIC', lddlflags='-shared -O2 -L/pro/local/lib -fstack-protector'
76 Characteristics of this binary (from libperl):
77 Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
78 PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_INT
79 USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
80 USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO
81 USE_PERL_ATOF
82 Built under linux
83 Compiled at Mar 12 2013 08:36:17
84 @INC:
85 /pro/lib/perl5/site_perl/5.16.3/i686-linux-64int
86 /pro/lib/perl5/site_perl/5.16.3
87 /pro/lib/perl5/5.16.3/i686-linux-64int
88 /pro/lib/perl5/5.16.3