On Fri Oct 07 16:49:39 2011, GFUJI wrote:
Show quoted text> I guess it is not a bug in Mouse, so I have changed tests simply.
> Please try 0.95.
(sid)gregoa@merulo:~/src/libmouse-perl-0.95$ perl Makefile.PL && make
Mouse configured with XS.
Writing ppport.h
Generate Mouse::Tiny ...
done.
Checking if your kit is complete...
Looks good
Writing Makefile for Mouse
cp lib/Mouse/Tiny.pod blib/lib/Mouse/Tiny.pod
cp lib/Mouse/TypeRegistry.pm blib/lib/Mouse/TypeRegistry.pm
cp lib/Mouse/Meta/Role/Composite.pm blib/lib/Mouse/Meta/Role/Composite.pm
cp lib/Mouse/Meta/Role/Method.pm blib/lib/Mouse/Meta/Role/Method.pm
cp lib/Mouse/Meta/Method/Delegation.pm
blib/lib/Mouse/Meta/Method/Delegation.pm
cp lib/Mouse/XS.pod blib/lib/Mouse/XS.pod
cp lib/Mouse/Meta/Method/Destructor.pm
blib/lib/Mouse/Meta/Method/Destructor.pm
cp lib/Mouse.pm blib/lib/Mouse.pm
cp lib/Mouse/Meta/Class.pm blib/lib/Mouse/Meta/Class.pm
cp lib/Squirrel/Role.pm blib/lib/Squirrel/Role.pm
cp lib/Mouse/Meta/Method.pm blib/lib/Mouse/Meta/Method.pm
cp lib/Test/Mouse.pm blib/lib/Test/Mouse.pm
cp lib/Mouse/Tiny.pm blib/lib/Mouse/Tiny.pm
cp lib/Mouse/Meta/Attribute.pm blib/lib/Mouse/Meta/Attribute.pm
cp lib/Mouse/Meta/TypeConstraint.pm blib/lib/Mouse/Meta/TypeConstraint.pm
cp lib/Mouse/Meta/Method/Accessor.pm blib/lib/Mouse/Meta/Method/Accessor.pm
cp lib/Mouse/Meta/Role.pm blib/lib/Mouse/Meta/Role.pm
cp lib/Mouse/Util/TypeConstraints.pm blib/lib/Mouse/Util/TypeConstraints.pm
cp lib/Mouse/Spec.pm blib/lib/Mouse/Spec.pm
cp lib/Mouse/Role.pm blib/lib/Mouse/Role.pm
cp lib/Squirrel.pm blib/lib/Squirrel.pm
cp lib/Mouse/Util/MetaRole.pm blib/lib/Mouse/Util/MetaRole.pm
cp lib/Mouse/Meta/Module.pm blib/lib/Mouse/Meta/Module.pm
cp lib/Mouse/Util.pm blib/lib/Mouse/Util.pm
cp lib/Mouse/Meta/Role/Application.pm
blib/lib/Mouse/Meta/Role/Application.pm
cp lib/Mouse/Meta/Method/Constructor.pm
blib/lib/Mouse/Meta/Method/Constructor.pm
cp lib/Mouse/Exporter.pm blib/lib/Mouse/Exporter.pm
cp lib/Mouse/PurePerl.pm blib/lib/Mouse/PurePerl.pm
cp lib/ouse.pm blib/lib/ouse.pm
cp lib/Mouse/Object.pm blib/lib/Mouse/Object.pm
/usr/bin/perl "-Iinc" /usr/share/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl/5.12/ExtUtils/typemap xs-src/Mouse.xs >
xs-src/Mouse.xsc && mv xs-src/Mouse.xsc xs-src/Mouse.c
cc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Wall -W -Wno-comment -O2 -g -DVERSION=\"0.95\"
-DXS_VERSION=\"0.95\" -o xs-src/Mouse.o -fPIC
"-I/usr/lib/perl/5.12/CORE" -DUSE_PPPORT xs-src/Mouse.c
/usr/bin/perl "-Iinc" /usr/share/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl/5.12/ExtUtils/typemap xs-src/MouseAccessor.xs >
xs-src/MouseAccessor.xsc && mv xs-src/MouseAccessor.xsc
xs-src/MouseAccessor.c
cc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Wall -W -Wno-comment -O2 -g -DVERSION=\"0.95\"
-DXS_VERSION=\"0.95\" -o xs-src/MouseAccessor.o -fPIC
"-I/usr/lib/perl/5.12/CORE" -DUSE_PPPORT xs-src/MouseAccessor.c
/usr/bin/perl "-Iinc" /usr/share/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl/5.12/ExtUtils/typemap xs-src/MouseAttribute.xs >
xs-src/MouseAttribute.xsc && mv xs-src/MouseAttribute.xsc
xs-src/MouseAttribute.c
cc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Wall -W -Wno-comment -O2 -g -DVERSION=\"0.95\"
-DXS_VERSION=\"0.95\" -o xs-src/MouseAttribute.o -fPIC
"-I/usr/lib/perl/5.12/CORE" -DUSE_PPPORT xs-src/MouseAttribute.c
/usr/bin/perl "-Iinc" /usr/share/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl/5.12/ExtUtils/typemap xs-src/MouseTypeConstraints.xs >
xs-src/MouseTypeConstraints.xsc && mv xs-src/MouseTypeConstraints.xsc
xs-src/MouseTypeConstraints.c
cc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Wall -W -Wno-comment -O2 -g -DVERSION=\"0.95\"
-DXS_VERSION=\"0.95\" -o xs-src/MouseTypeConstraints.o -fPIC
"-I/usr/lib/perl/5.12/CORE" -DUSE_PPPORT xs-src/MouseTypeConstraints.c
/usr/bin/perl "-Iinc" /usr/share/perl5/ExtUtils/xsubpp -typemap
/usr/share/perl/5.12/ExtUtils/typemap xs-src/MouseUtil.xs >
xs-src/MouseUtil.xsc && mv xs-src/MouseUtil.xsc xs-src/MouseUtil.c
cc -c "-I." "-I." -D_REENTRANT -D_GNU_SOURCE -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Wall -W -Wno-comment -O2 -g -DVERSION=\"0.95\"
-DXS_VERSION=\"0.95\" -o xs-src/MouseUtil.o -fPIC
"-I/usr/lib/perl/5.12/CORE" -DUSE_PPPORT xs-src/MouseUtil.c
Running Mkbootstrap for Mouse ()
chmod 644 Mouse.bs
rm -f blib/arch/auto/Mouse/Mouse.so
cc -shared -O2 -g -L/usr/local/lib xs-src/Mouse.o
xs-src/MouseAccessor.o xs-src/MouseAttribute.o
xs-src/MouseTypeConstraints.o xs-src/MouseUtil.o -o
blib/arch/auto/Mouse/Mouse.so \
\
chmod 755 blib/arch/auto/Mouse/Mouse.so
cp Mouse.bs blib/arch/auto/Mouse/Mouse.bs
chmod 644 blib/arch/auto/Mouse/Mouse.bs
Manifying blib/man3/Mouse::TypeRegistry.3pm
Manifying blib/man3/Mouse::Tiny.3pm
Manifying blib/man3/Mouse::Meta::Role::Method.3pm
Manifying blib/man3/Mouse::Meta::Role::Composite.3pm
Manifying blib/man3/Mouse::Meta::Method::Delegation.3pm
Manifying blib/man3/Mouse::Meta::Method::Destructor.3pm
Manifying blib/man3/Mouse::XS.3pm
Manifying blib/man3/Mouse.3pm
Manifying blib/man3/Mouse::Meta::Class.3pm
Manifying blib/man3/Squirrel::Role.3pm
Manifying blib/man3/Test::Mouse.3pm
Manifying blib/man3/Mouse::Meta::Method.3pm
Manifying blib/man3/Mouse::Meta::Method::Accessor.3pm
Manifying blib/man3/Mouse::Meta::TypeConstraint.3pm
Manifying blib/man3/Mouse::Meta::Attribute.3pm
Manifying blib/man3/Mouse::Meta::Role.3pm
Manifying blib/man3/Mouse::Util::TypeConstraints.3pm
Manifying blib/man3/Mouse::Util::MetaRole.3pm
Manifying blib/man3/Squirrel.3pm
Manifying blib/man3/Mouse::Role.3pm
Manifying blib/man3/Mouse::Spec.3pm
Manifying blib/man3/Mouse::Meta::Module.3pm
Manifying blib/man3/Mouse::Meta::Role::Application.3pm
Manifying blib/man3/Mouse::Util.3pm
Manifying blib/man3/Mouse::Meta::Method::Constructor.3pm
Manifying blib/man3/Mouse::PurePerl.3pm
Manifying blib/man3/Mouse::Exporter.3pm
Manifying blib/man3/Mouse::Object.3pm
Manifying blib/man3/ouse.3pm
(sid)gregoa@merulo:~/src/libmouse-perl-0.95$ perl -Mblib
t/001_mouse/043-parameterized-type.t
ok 1
ok 2 - foo is a proper hash
ok 3 - bar is a proper array
ok 4 - complex is a proper ... structure
ok 5 - Parameterized constraints work
ok 6 - The object isa My::Class
ok 7 - Parameterized constraints work
ok 8 - Bad args for hash throws an exception
ok 9 - Bad args for array throws an exception
ok 10 - Bad args for complex types throws an exception
ok 11 - threw Regexp ((?-xism:Attribute \(my_class\) does not pass the
type constraint because: Validation failed for 'ArrayRef\[My::Class\]'
with value))
ok 12 - threw Regexp ((?-xism:Attribute \(my_class\) does not pass the
type constraint because: Validation failed for 'ArrayRef\[My::Class\]'
with value))
ok 13 - threw Regexp ((?-xism:Attribute \(my_role\) does not pass the
type constraint because: Validation failed for 'ArrayRef\[My::Role\]'
with value))
ok 14 - threw Regexp ((?-xism:Attribute \(my_role\) does not pass the
type constraint because: Validation failed for 'ArrayRef\[My::Role\]'
with value))
ok 15 - list is as expected
ok 16 - Bad coercion parameter throws an error
ok 17 - Maybe[Int] is a type of Maybe[Int]
ok 18 - Maybe[Int] is a type of Maybe
ok 19 - Maybe[Int] is a type of Maybe[Int]
ok 20
ok 21
ok 22
ok 23
ok 24 - Maybe[Int] is a type of Maybe[Int]
ok 25 - Maybe[Int] is a type of Maybe
ok 26 - Maybe[Int] is a type of Maybe[Int]
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33
ok 34
ok 35
ok 36
ok 37
ok 38
ok 39
ok 40
ok 41
ok 42
ok 43
ok 44
ok 45
ok 46
ok 47 - magical array
ok 48
ok 49 - magical hash
ok 50
ok 51
ok 52
ok 53
ok 54 - the hash iterator is initialized
# derived from parameterized types #1
ok 55 - MyHashRef
ok 56
ok 57
ok 58
ok 59
ok 60
ok 61 - H
ok 62
ok 63
ok 64 - empty hash
ok 65
not ok 66
# Failed test at t/001_mouse/043-parameterized-type.t line 251.
ok 67
ok 68
ok 69
ok 70
ok 71
# derived from parameterized types #2
ok 72 - MyHashRef
ok 73
ok 74
ok 75
ok 76
ok 77
ok 78 - H
ok 79
ok 80
ok 81 - empty hash
ok 82
not ok 83
# Failed test at t/001_mouse/043-parameterized-type.t line 251.
ok 84
ok 85
ok 86
ok 87
ok 88
1..88
# Looks like you failed 2 tests of 88.
Show quoted text> If tests fail, please send me that (I will skip the tests in the last
> resort):
> * perl -Mblib t/001_mouse/043-parameterized-type.t
See above.
Show quoted text> * PERL_ONLY=1 perl -Mblib t/001_mouse/043-parameterized-type.t # run
> in pure perl mode
> * perl -V:archname
(sid)gregoa@merulo:~/src/libmouse-perl-0.95$ PERL_ONLY=1 perl -Mblib
t/001_mouse/043-parameterized-type.t
ok 1
ok 2 - foo is a proper hash
ok 3 - bar is a proper array
ok 4 - complex is a proper ... structure
ok 5 - Parameterized constraints work
ok 6 - The object isa My::Class
ok 7 - Parameterized constraints work
ok 8 - Bad args for hash throws an exception
ok 9 - Bad args for array throws an exception
ok 10 - Bad args for complex types throws an exception
ok 11 - threw Regexp ((?-xism:Attribute \(my_class\) does not pass the
type constraint because: Validation failed for 'ArrayRef\[My::Class\]'
with value))
ok 12 - threw Regexp ((?-xism:Attribute \(my_class\) does not pass the
type constraint because: Validation failed for 'ArrayRef\[My::Class\]'
with value))
ok 13 - threw Regexp ((?-xism:Attribute \(my_role\) does not pass the
type constraint because: Validation failed for 'ArrayRef\[My::Role\]'
with value))
ok 14 - threw Regexp ((?-xism:Attribute \(my_role\) does not pass the
type constraint because: Validation failed for 'ArrayRef\[My::Role\]'
with value))
ok 15 - list is as expected
ok 16 - Bad coercion parameter throws an error
ok 17 - Maybe[Int] is a type of Maybe[Int]
ok 18 - Maybe[Int] is a type of Maybe
ok 19 - Maybe[Int] is a type of Maybe[Int]
ok 20
ok 21
ok 22
ok 23
ok 24 - Maybe[Int] is a type of Maybe[Int]
ok 25 - Maybe[Int] is a type of Maybe
ok 26 - Maybe[Int] is a type of Maybe[Int]
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33
ok 34
ok 35
ok 36
ok 37
ok 38
ok 39
ok 40
ok 41
ok 42
ok 43
ok 44
ok 45
ok 46
ok 47 - magical array
ok 48
ok 49 - magical hash
ok 50
ok 51
ok 52
ok 53
ok 54 - the hash iterator is initialized
# derived from parameterized types #1
ok 55 - MyHashRef
ok 56
ok 57
ok 58
ok 59
ok 60
ok 61 - H
ok 62
ok 63
ok 64 - empty hash
ok 65
not ok 66
# Failed test at t/001_mouse/043-parameterized-type.t line 251.
ok 67
ok 68
ok 69
ok 70
ok 71
# derived from parameterized types #2
ok 72 - MyHashRef
ok 73
ok 74
ok 75
ok 76
ok 77
ok 78 - H
ok 79
ok 80
ok 81 - empty hash
ok 82
not ok 83
# Failed test at t/001_mouse/043-parameterized-type.t line 251.
ok 84
ok 85
ok 86
ok 87
ok 88
1..88
# Looks like you failed 2 tests of 88.
(sid)gregoa@merulo:~/src/libmouse-perl-0.95$ perl -V:archname
archname='ia64-linux-gnu-thread-multi';
Cheers,
gregor