Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
af4bede6
Commit
af4bede6
authored
Jan 09, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix reorder
parent
3f910d48
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+4
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-2
No files found.
mysql-test/lib/mtr_cases.pm
View file @
af4bede6
...
@@ -37,6 +37,7 @@ our $default_storage_engine;
...
@@ -37,6 +37,7 @@ our $default_storage_engine;
our
$opt_with_ndbcluster_only
;
our
$opt_with_ndbcluster_only
;
our
$defaults_file
;
our
$defaults_file
;
our
$defaults_extra_file
;
our
$defaults_extra_file
;
our
$reorder
;
sub
collect_option
{
sub
collect_option
{
my
(
$opt
,
$value
)
=
@_
;
my
(
$opt
,
$value
)
=
@_
;
...
@@ -120,7 +121,7 @@ sub collect_test_cases ($$) {
...
@@ -120,7 +121,7 @@ sub collect_test_cases ($$) {
}
}
}
}
if
(
$
::opt_
reorder
)
if
(
$reorder
)
{
{
# Reorder the test cases in an order that will make them faster to run
# Reorder the test cases in an order that will make them faster to run
my
%
sort_criteria
;
my
%
sort_criteria
;
...
@@ -173,7 +174,8 @@ sub collect_test_cases ($$) {
...
@@ -173,7 +174,8 @@ sub collect_test_cases ($$) {
push
(
@criteria
,
"
ndb=
"
.
(
$tinfo
->
{'
ndb_test
'}
?
"
1
"
:
"
0
"));
push
(
@criteria
,
"
ndb=
"
.
(
$tinfo
->
{'
ndb_test
'}
?
"
1
"
:
"
0
"));
# Group test with equal options together.
# Group test with equal options together.
# Ending with "~" makes empty sort later than filled
# Ending with "~" makes empty sort later than filled
push
(
@criteria
,
join
("
!
",
sort
@
{
$tinfo
->
{'
master_opt
'}})
.
"
~
");
my
$opts
=
$tinfo
->
{'
master_opt
'}
?
$tinfo
->
{'
master_opt
'}
:
[]
;
push
(
@criteria
,
join
("
!
",
sort
@
{
$opts
})
.
"
~
");
$sort_criteria
{
$test_name
}
=
join
("
",
@criteria
);
$sort_criteria
{
$test_name
}
=
join
("
",
@criteria
);
}
}
...
...
mysql-test/mysql-test-run.pl
View file @
af4bede6
...
@@ -124,7 +124,6 @@ sub using_extern { return (keys %opts_extern > 0);};
...
@@ -124,7 +124,6 @@ sub using_extern { return (keys %opts_extern > 0);};
our
$opt_fast
=
0
;
our
$opt_fast
=
0
;
our
$opt_force
;
our
$opt_force
;
our
$opt_reorder
=
0
;
our
$opt_mem
=
$ENV
{'
MTR_MEM
'};
our
$opt_mem
=
$ENV
{'
MTR_MEM
'};
our
$opt_gcov
;
our
$opt_gcov
;
...
@@ -368,7 +367,7 @@ sub command_line_setup {
...
@@ -368,7 +367,7 @@ sub command_line_setup {
'
report-features
'
=>
\
$opt_report_features
,
'
report-features
'
=>
\
$opt_report_features
,
'
comment=s
'
=>
\
$opt_comment
,
'
comment=s
'
=>
\
$opt_comment
,
'
fast
'
=>
\
$opt_fast
,
'
fast
'
=>
\
$opt_fast
,
'
reorder
'
=>
\
$opt_reorder
,
'
reorder
'
=>
\
&
collect_option
,
'
enable-disabled
'
=>
\&
collect_option
,
'
enable-disabled
'
=>
\&
collect_option
,
'
verbose+
'
=>
\
$opt_verbose
,
'
verbose+
'
=>
\
$opt_verbose
,
'
sleep=i
'
=>
\
$opt_sleep
,
'
sleep=i
'
=>
\
$opt_sleep
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment