5508bce2f8bbf75a237a60b79eebf4dc607d89d3
[gitmo/Mouse.git] / t / 000-load.t
1 #!perl -T
2 package Foo;
3 use strict;
4 use warnings;
5 use Test::More tests => 2;
6
7 require_ok 'Mouse';
8 require_ok 'Mouse::Role';
9
10 no warnings 'uninitialized';
11
12 my $xs = !exists( $INC{'Mouse/PuprePerl.pm'} );
13
14 diag "Testing Mouse/$Mouse::VERSION (", $xs ? 'XS' : 'Pure Perl', ")";
15
16 diag "Soft dependency versions:";
17
18 eval { require Moose };
19 diag "    Class::MOP: $Class::MOP::VERSION";
20 diag "    Moose: $Moose::VERSION";
21
22 if($xs) { # display info for CPAN testers
23     if(open my $in, '<', 'Makefile') {
24         diag 'xsubpp settings:';
25         while(<$in>) {
26             if(/^XSUBPP/) {
27                 diag $_;
28             }
29         }
30     }
31 }
32