Many fixes after CPANTESTERS report
[Config-Perl-V.git] / t / 21_plv58.t
blob300cc31d9ae8a568dea8d04f58696d465fb4297a
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}, "Oct 21 2010 14:50:53", "Build time");
25 is ($conf->{config}{version}, "5.8.9", "reconstructed \%Config{version}");
26 is ($conf->{config}{usethreads}, "define", "This was a threaded perl");
28 my $opt = Config::Perl::V::plv2hash ("")->{build}{options};
29 foreach my $o (sort qw(
30 DEBUGGING MULTIPLICITY PERL_IMPLICIT_CONTEXT
31 PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_64_BIT_INT
32 USE_FAST_STDIO USE_ITHREADS USE_LARGE_FILES
33 USE_LONG_DOUBLE USE_PERLIO USE_REENTRANT_API
34 )) {
35 is ($conf->{build}{options}{$o}, 1, "Runtime option $o set");
36 delete $opt->{$o};
38 foreach my $o (sort keys %$opt) {
39 is ($conf->{build}{options}{$o}, 0, "Runtime option $o unset");
42 __END__
43 Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
44 Platform:
45 osname=linux, osvers=2.6.34.7-0.4-desktop, archname=i686-linux-thread-multi-64int-ld
46 uname='linux tux09.procura.nl 2.6.34.7-0.4-desktop #1 smp preempt 2010-10-07 19:07:51 +0200 i686 i686 i386 gnulinux '
47 config_args='-Dusedevel -Dusethreads -Duseithreads -Duse64bitint -Duselongdouble -Duseperlio -des -Dusedevel -Uinstallusrbinperl -Dprefix=/media/Tux/perls-t'
48 hint=recommended, useposix=true, d_sigaction=define
49 usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
50 useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
51 use64bitint=define use64bitall=undef uselongdouble=define
52 usemymalloc=n, bincompat5005=undef
53 Compiler:
54 cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
55 optimize='-O2',
56 cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -I/pro/local/include'
57 ccversion='', gccversion='4.5.0 20100604 [gcc-4_5-branch revision 160292]', gccosandvers=''
58 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
59 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
60 ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8
61 alignbytes=4, prototype=define
62 Linker and Libraries:
63 ld='cc', ldflags ='-L/pro/local/lib'
64 libpth=/pro/local/lib /lib /usr/lib /usr/local/lib
65 libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
66 perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
67 libc=/lib/libc-2.11.2.so, so=so, useshrplib=false, libperl=libperl.a
68 gnulibc_version='2.11.2'
69 Dynamic Linking:
70 dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
71 cccdlflags='-fPIC', lddlflags='-shared -O2 -L/pro/local/lib'
74 Characteristics of this binary (from libperl):
75 Compile-time options: DEBUGGING MULTIPLICITY PERL_IMPLICIT_CONTEXT
76 PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_64_BIT_INT
77 USE_FAST_STDIO USE_ITHREADS USE_LARGE_FILES
78 USE_LONG_DOUBLE USE_PERLIO USE_REENTRANT_API
79 Built under linux
80 Compiled at Oct 21 2010 14:50:53
81 @INC:
82 /media/Tux/perls-t/lib/5.8.9/i686-linux-thread-multi-64int-ld
83 /media/Tux/perls-t/lib/5.8.9
84 /media/Tux/perls-t/lib/site_perl/5.8.9/i686-linux-thread-multi-64int-ld
85 /media/Tux/perls-t/lib/site_perl/5.8.9