X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F000-load.t;h=5508bce2f8bbf75a237a60b79eebf4dc607d89d3;hb=d468e99669162209fc407bc22706a91b8675dbbc;hp=a075550251f13e29727c04eefee15d96a05cef67;hpb=c3398f5bd45f2851b7cd40ca9823bcf7d2378469;p=gitmo%2FMouse.git diff --git a/t/000-load.t b/t/000-load.t index a075550..5508bce 100644 --- a/t/000-load.t +++ b/t/000-load.t @@ -1,7 +1,32 @@ #!perl -T +package Foo; use strict; use warnings; -use Test::More tests => 1; +use Test::More tests => 2; -use_ok 'Mouse'; +require_ok 'Mouse'; +require_ok 'Mouse::Role'; + +no warnings 'uninitialized'; + +my $xs = !exists( $INC{'Mouse/PuprePerl.pm'} ); + +diag "Testing Mouse/$Mouse::VERSION (", $xs ? 'XS' : 'Pure Perl', ")"; + +diag "Soft dependency versions:"; + +eval { require Moose }; +diag " Class::MOP: $Class::MOP::VERSION"; +diag " Moose: $Moose::VERSION"; + +if($xs) { # display info for CPAN testers + if(open my $in, '<', 'Makefile') { + diag 'xsubpp settings:'; + while(<$in>) { + if(/^XSUBPP/) { + diag $_; + } + } + } +}