Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split t/uni/variables.t into multiple tests
These can be done in parallel; otherwise this is often the test that finishes last, holding up the test suite completion.
- Loading branch information
1 parent
19037fb
commit 16114d1
Showing
27 changed files
with
384 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
|
||
BEGIN { | ||
chdir 't' if -d 't'; | ||
require './test.pl'; | ||
skip_all_without_unicode_tables(); | ||
} | ||
|
||
use 5.016; | ||
use utf8; | ||
#use open qw( :utf8 :std ); | ||
#no warnings qw(misc reserved); | ||
|
||
my $chunks = 24; | ||
my $total_tests = 65280; | ||
my $tests; | ||
#print STDERR __FILE__, ": ", __LINE__, ": $chunks\n"; | ||
|
||
{ | ||
use integer; | ||
$tests = $total_tests / $chunks; | ||
$tests += $total_tests % $chunks if $::TESTCHUNK == $chunks - 1; | ||
} | ||
#print STDERR __FILE__, ": ", __LINE__, ": $tests\n"; | ||
|
||
plan (tests => $tests); | ||
|
||
my $start = 0x100 + $::TESTCHUNK * $tests; | ||
for my $i ($start .. $start + $tests - 1) { | ||
my $chr = chr($i); | ||
my $esc = sprintf("%x", $i); | ||
local $@; | ||
eval "my \$$chr = q<test>; \$$chr;"; | ||
if ( $chr =~ /^\p{_Perl_IDStart}$/ ) { | ||
is($@, '', sprintf("\\x{%04x} is XIDS, works as a length-1 variable", $i)); | ||
} | ||
else { | ||
like($@, | ||
qr/\QUnrecognized character \x{$esc};/, | ||
"\\x{$esc} isn't XIDS, illegal as a length-1 variable", | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!./perl | ||
|
||
use strict; | ||
use warnings; | ||
no warnings 'once'; | ||
|
||
__FILE__ =~ m/ ( \d+ ) \. t $ /x; | ||
$::TESTCHUNK = $1 + 0; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $::TESTCHUNK, "\n"; | ||
do './uni/idstart.pl'; | ||
#print STDERR __FILE__, ": ", __LINE__, ": ", $@, "\n"; | ||
|
||
1 |
Oops, something went wrong.