Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created September 12, 2016 10:35
Show Gist options
  • Save zoffixznet/fedf091fa93b8d7a725ef90642a29e67 to your computer and use it in GitHub Desktop.
Save zoffixznet/fedf091fa93b8d7a725ef90642a29e67 to your computer and use it in GitHub Desktop.
zoffix@VirtualBox:~/CPANPRC/rakudo$ make t/spec/S10-packages/precompilation.t
rm -f -- perl6
cp -- perl6-m perl6
chmod -- 755 perl6
/home/zoffix/perl5/perlbrew/perls/perl-5.24.0/bin/perl t/harness5 --fudge --moar --keep-exit-code --verbosity=1 t/spec/S10-packages/precompilation.t
t/spec/S10-packages/precompilation.rakudo.moar ..
1..50
ok 1 -
ok 2 -
ok 3 -
ok 4 -
ok 5 - Diamond relationship
ok 6 -
ok 7 -
ok 8 -
ok 9 -
ok 10 -
ok 11 -
ok 12 -
ok 13 -
ok 14 -
ok 15 -
ok 16 -
ok 17 -
ok 18 -
ok 19 -
ok 20 -
ok 21 -
ok 22 - Twisty maze of dependencies, all different
not ok 23 - precompile exported cached sub# TODO RT \#122896
# Failed test 'precompile exported cached sub'
# at /home/zoffix/CPANPRC/rakudo/t/spec/packages/Test/Util.pm (Test::Util) line 59
# got status: 1
# got err: "Cannot invoke this object (REPR: Null; VMNull)\n in block at /home/zoffix/CPANPRC/rakudo/lib/experimental.pm6 (experimental) line 10\n in any enter at gen/moar/m-Metamodel.nqp line 4012\n in block <unit> at getout-21488-982071.code line 3\n\n"
# expected err: ""
ok 24 - precompiled a parameterized role
ok 25 - precompiled a sub with params returning a proxy
ok 26 - precomp curried role compose
ok 27 - "need" survives "no precompilation"
ok 28 - tried to precompile all 3 modules
ok 29 -
ok 30 -
ok 31 -
ok 32 - RT123276
ok 33 - precomp of native array parameterization
ok 34 - precomp of native array parameterization intern test (a)
ok 35 - did we create a t/spec/packages/InternArrayA.pm.moarvm
ok 36 - precomp of native array parameterization intern test (b)
ok 37 - did we create a t/spec/packages/InternArrayB.pm.moarvm
not ok 38 - precompile load of both and identity check passed# TODO no 6model parametrics interning yet
# Failed test 'precompile load of both and identity check passed'
# at /home/zoffix/CPANPRC/rakudo/t/spec/packages/Test/Util.pm (Test::Util) line 59
# got status: 1
# got out: ""
# expected out: "True"
# got err: "===SORRY!===\nCould not find InternArrayA at line 1 in:\n /home/zoffix/CPANPRC/rakudo/t/spec/packages\n /home/zoffix/CPANPRC/rakudo/lib\n /home/zoffix/.perl6\n /home/zoffix/CPANPRC/rakudo/install/share/perl6/site\n /home/zoffix/CPANPRC/rakudo/install/share/perl6/vendor\n /home/zoffix/CPANPRC/rakudo/install/share/perl6\n CompUnit::Repository::AbsolutePath<70381712>\n CompUnit::Repository::NQP<62819456>\n CompUnit::Repository::Perl5<62819496>\n"
# expected err: ""
ok 39 - precomp of BEGIN using $*KERNEL and $*DISTRO
ok 40 - precomp of assignment to variable using subset type
ok 41 - no duplicate compilation error
ok 42 - GLOBAL symbols exist after re-precompiled
ok 43 - Can precompile modules before touching source file
ok 44 - Can precompile modules after touching source file
ok 45 - 1. changing SHA of dependency doesn't break re-precompilation
ok 46 - 2. changing SHA of dependency doesn't break re-precompilation
ok 47 - 1. change in source file of dependency detected
ok 48 - 2. change in source file of dependency detected
ok 49 - roles in precompiled modules recognize type names (run 0)
ok 50 - roles in precompiled modules recognize type names (run 1)
# FUDGED!
ok
All tests successful.
Files=1, Tests=50, 23 wallclock secs ( 0.03 usr 0.00 sys + 19.80 cusr 2.02 csys = 21.85 CPU)
Result: PASS
zoffix@VirtualBox:~/CPANPRC/rakudo$ cd t/spec/
zoffix@VirtualBox:~/CPANPRC/rakudo/t/spec$ gs
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
zoffix@VirtualBox:~/CPANPRC/rakudo/t/spec$ gr
Already up-to-date.
zoffix@VirtualBox:~/CPANPRC/rakudo/t/spec$ cd ../..
zoffix@VirtualBox:~/CPANPRC/rakudo$ PERL6_TEST_DIE_ON_FAIL=1 make t/spec/S10-packages/precompilation.t
rm -f -- perl6
cp -- perl6-m perl6
chmod -- 755 perl6
/home/zoffix/perl5/perlbrew/perls/perl-5.24.0/bin/perl t/harness5 --fudge --moar --keep-exit-code --verbosity=1 t/spec/S10-packages/precompilation.t
t/spec/S10-packages/precompilation.rakudo.moar ..
1..50
ok 1 -
ok 2 -
ok 3 -
ok 4 -
ok 5 - Diamond relationship
ok 6 -
ok 7 -
ok 8 -
ok 9 -
ok 10 -
ok 11 -
ok 12 -
ok 13 -
ok 14 -
ok 15 -
ok 16 -
ok 17 -
ok 18 -
ok 19 -
ok 20 -
ok 21 -
ok 22 - Twisty maze of dependencies, all different
not ok 23 - precompile exported cached sub# TODO RT \#122896
# Failed test 'precompile exported cached sub'
# at /home/zoffix/CPANPRC/rakudo/t/spec/packages/Test/Util.pm (Test::Util) line 59
# got status: 1
# got err: "Cannot invoke this object (REPR: Null; VMNull)\n in block at /home/zoffix/CPANPRC/rakudo/lib/experimental.pm6 (experimental) line 10\n in any enter at gen/moar/m-Metamodel.nqp line 4012\n in block <unit> at getout-21609-804682.code line 3\n\n"
# expected err: ""
ok 24 - precompiled a parameterized role
ok 25 - precompiled a sub with params returning a proxy
ok 26 - precomp curried role compose
ok 27 - "need" survives "no precompilation"
ok 28 - tried to precompile all 3 modules
ok 29 -
ok 30 -
ok 31 -
ok 32 - RT123276
ok 33 - precomp of native array parameterization
ok 34 - precomp of native array parameterization intern test (a)
ok 35 - did we create a t/spec/packages/InternArrayA.pm.moarvm
ok 36 - precomp of native array parameterization intern test (b)
ok 37 - did we create a t/spec/packages/InternArrayB.pm.moarvm
not ok 38 - precompile load of both and identity check passed# TODO no 6model parametrics interning yet
# Failed test 'precompile load of both and identity check passed'
# at /home/zoffix/CPANPRC/rakudo/t/spec/packages/Test/Util.pm (Test::Util) line 59
# got status: 1
# got out: ""
# expected out: "True"
# got err: "===SORRY!===\nCould not find InternArrayA at line 1 in:\n /home/zoffix/CPANPRC/rakudo/t/spec/packages\n /home/zoffix/CPANPRC/rakudo/lib\n /home/zoffix/.perl6\n /home/zoffix/CPANPRC/rakudo/install/share/perl6/site\n /home/zoffix/CPANPRC/rakudo/install/share/perl6/vendor\n /home/zoffix/CPANPRC/rakudo/install/share/perl6\n CompUnit::Repository::AbsolutePath<52065120>\n CompUnit::Repository::NQP<44498528>\n CompUnit::Repository::Perl5<44498568>\n"
# expected err: ""
ok 39 - precomp of BEGIN using $*KERNEL and $*DISTRO
ok 40 - precomp of assignment to variable using subset type
ok 41 - no duplicate compilation error
ok 42 - GLOBAL symbols exist after re-precompiled
ok 43 - Can precompile modules before touching source file
ok 44 - Can precompile modules after touching source file
ok 45 - 1. changing SHA of dependency doesn't break re-precompilation
ok 46 - 2. changing SHA of dependency doesn't break re-precompilation
ok 47 - 1. change in source file of dependency detected
ok 48 - 2. change in source file of dependency detected
ok 49 - roles in precompiled modules recognize type names (run 0)
ok 50 - roles in precompiled modules recognize type names (run 1)
# FUDGED!
ok
All tests successful.
Files=1, Tests=50, 10 wallclock secs ( 0.01 usr 0.01 sys + 9.00 cusr 1.12 csys = 10.14 CPU)
Result: PASS
zoffix@VirtualBox:~/CPANPRC/rakudo$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment