Better detect build times
[Config-Perl-V.git] / t / 25_plv516.t
blob734940a5b861b3187229fdc5648580cb3785cece
1 #!/pro/bin/perl
3 use strict;
4 use warnings;
6 BEGIN {
7 use Test::More;
8 my $tests = 9;
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. nonn-gcc version should not be defined");
28 __END__
29 Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
31 Platform:
32 osname=linux, osvers=3.4.33-2.24-desktop, archname=i686-linux-64int
33 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 '
34 config_args='-Duse64bitint -Duselongdouble -des'
35 hint=previous, useposix=true, d_sigaction=define
36 useithreads=undef, usemultiplicity=undef
37 useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
38 use64bitint=define, use64bitall=undef, uselongdouble=undef
39 usemymalloc=n, bincompat5005=undef
40 Compiler:
41 cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
42 optimize='-O2',
43 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'
44 ccversion='', gccversion='4.7.1 20120723 [gcc-4_7-branch revision 189773]', gccosandvers=''
45 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
46 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
47 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
48 alignbytes=4, prototype=define
49 Linker and Libraries:
50 ld='cc', ldflags ='-L/pro/local/lib -fstack-protector'
51 libpth=/pro/local/lib /lib /usr/lib /usr/local/lib
52 libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
53 perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
54 libc=/lib/libc-2.15.so, so=so, useshrplib=false, libperl=libperl.a
55 gnulibc_version='2.15'
56 Dynamic Linking:
57 dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
58 cccdlflags='-fPIC', lddlflags='-shared -O2 -L/pro/local/lib -fstack-protector'
61 Characteristics of this binary (from libperl):
62 Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
63 PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_INT
64 USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
65 USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_PERLIO
66 USE_PERL_ATOF
67 Built under linux
68 Compiled at Mar 12 2013 08:36:17
69 @INC:
70 /pro/lib/perl5/site_perl/5.16.3/i686-linux-64int
71 /pro/lib/perl5/site_perl/5.16.3
72 /pro/lib/perl5/5.16.3/i686-linux-64int
73 /pro/lib/perl5/5.16.3