Skip to content

Commit 3cd3d23

Browse files
author
H.Merijn Brand - Tux
committed
Locally it is raku for testing and timing
1 parent dbb2a22 commit 3cd3d23

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

bugs.pl

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
use warnings;
55
use Term::ANSIColor;
66

7-
sub usage
8-
{
7+
sub usage {
98
my $err = shift and select STDERR;
109
say "usage: $0 [--test]";
1110
exit $err;
@@ -51,7 +50,7 @@ sub test
5150
close $fh;
5251
};
5352
alarm (3);
54-
system "perl6 $t @arg >$e 2>&1";
53+
system "raku $t @arg >$e 2>&1";
5554
$exit = $?;
5655
alarm (0);
5756
};
@@ -243,7 +242,7 @@ sub test
243242

244243
{ title "Precomp", "Precompilations causes segfault", "RT#124298";
245244
qx{mkdir -p blib/lib/Text};
246-
qx{perl6 --target=mbc --output=blib/lib/Text/CSV.pm.moarvm lib/Text/CSV.pm};
245+
qx{raku --target=mbc --output=blib/lib/Text/CSV.pm.moarvm lib/Text/CSV.pm};
247246
test (qr{Segmentation fault},
248247
q{use lib "blib/lib";use Text::CSV; my $c = Text::CSV.new});
249248
qx{find blib};

test-t.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!perl6
1+
#!raku
22

33
use v6;
44
use Text::CSV;

time.pl

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sub usage {
3838
3 => [ ".py", "python3", ],
3939
4 => [ ".php", "php", "-nq" ],
4040
5 => [ ".pl", "perl", ],
41-
6 => [ ".pl", "perl6", "-Ilib" ],
41+
6 => [ ".pl", "raku", "-Ilib" ],
4242
7 => [ ".lua", "lua5.1" ],
4343
21 => [ ".lua", "lua5.3" ],
4444
8 => [ ".go", "go", "run" ],
@@ -149,7 +149,7 @@ sub runfrom {
149149

150150
my ($ext, $exe, @arg) = @{$lang{$v}};
151151

152-
$exe eq "perl6" && !$opt_6 and next;
152+
$exe eq "raku" && !$opt_6 and next;
153153

154154
$opt_v and printf "%-9s ", $exe;
155155
my $s_script = sprintf "%-17s ", join "\x{00a0}" => $script, @args;
@@ -201,7 +201,7 @@ sub runfrom {
201201
$irc and push @irc, $time[-1];
202202
}
203203

204-
print qx{perl6 -v} =~ s{\nimplementing.*\n}{\n}r;
204+
print qx{raku -v} =~ s{\nimplementing.*\n}{\n}r;
205205
printf "%s %9.3f\n", $_->[1], $_->[3] for grep { $_->[3] < 100 } @irc;
206206

207207
if (!$opt_i and open my $fh, ">", "../Talks/CSV6/speed5.html") {

0 commit comments

Comments
 (0)