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
be0f9165
Commit
be0f9165
authored
Jul 07, 2005
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/Users/kent/mysql/bk/mysql-4.1-gca
into mysql.com:/Users/kent/mysql/bk/mysql-4.1
parents
a8efd33a
922f2faa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
4 deletions
+39
-4
mysql-test/lib/mtr_cases.pl
mysql-test/lib/mtr_cases.pl
+39
-4
No files found.
mysql-test/lib/mtr_cases.pl
View file @
be0f9165
...
...
@@ -8,7 +8,7 @@ use File::Basename;
use
strict
;
sub
collect_test_cases
($);
sub
collect_one_test_case
($$$$$);
sub
collect_one_test_case
($$$$$
$
);
##############################################################################
#
...
...
@@ -46,18 +46,36 @@ sub collect_test_cases ($) {
{
mtr_error
("
Test case
$tname
(
$testdir
/
$elem
) is not found
");
}
collect_one_test_case
(
$testdir
,
$resdir
,
$tname
,
$elem
,
$cases
);
collect_one_test_case
(
$testdir
,
$resdir
,
$tname
,
$elem
,
$cases
,{}
);
}
closedir
TESTDIR
;
}
else
{
# ----------------------------------------------------------------------
# Skip some tests listed in disabled.def
# ----------------------------------------------------------------------
my
%
skiplist
;
my
$skipfile
=
"
$testdir
/disabled.def
";
if
(
open
(
SKIPFILE
,
$skipfile
)
)
{
while
(
<
SKIPFILE
>
)
{
chomp
;
if
(
/^\s*(\S+)\s*:\s*(.*?)\s*$/
)
{
$skiplist
{
$1
}
=
$2
;
}
}
close
SKIPFILE
;
}
foreach
my
$elem
(
sort
readdir
(
TESTDIR
)
)
{
my
$tname
=
mtr_match_extension
(
$elem
,"
test
");
next
if
!
defined
$tname
;
next
if
$::opt_do_test
and
!
defined
mtr_match_prefix
(
$elem
,
$::opt_do_test
);
collect_one_test_case
(
$testdir
,
$resdir
,
$tname
,
$elem
,
$cases
);
collect_one_test_case
(
$testdir
,
$resdir
,
$tname
,
$elem
,
$cases
,
\%
skiplist
);
}
closedir
TESTDIR
;
}
...
...
@@ -95,12 +113,13 @@ sub collect_test_cases ($) {
##############################################################################
sub
collect_one_test_case
($$$$$)
{
sub
collect_one_test_case
($$$$$
$
)
{
my
$testdir
=
shift
;
my
$resdir
=
shift
;
my
$tname
=
shift
;
my
$elem
=
shift
;
my
$cases
=
shift
;
my
$skiplist
=
shift
;
my
$path
=
"
$testdir
/
$elem
";
...
...
@@ -154,6 +173,14 @@ sub collect_one_test_case($$$$$) {
}
}
if
(
defined
mtr_match_prefix
(
$tname
,"
federated
")
)
{
$tinfo
->
{'
slave_num
'}
=
1
;
# Default, use one slave
# FIXME currently we always restart slaves
$tinfo
->
{'
slave_restart
'}
=
1
;
}
# FIXME what about embedded_server + ndbcluster, skip ?!
my
$master_opt_file
=
"
$testdir
/
$tname
-master.opt
";
...
...
@@ -264,6 +291,14 @@ sub collect_one_test_case($$$$$) {
}
}
# FIXME why this late?
if
(
$skiplist
->
{
$tname
}
)
{
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
disable
'}
=
1
;
# Sub type of 'skip'
$tinfo
->
{'
comment
'}
=
$skiplist
->
{
$tname
}
if
$skiplist
->
{
$tname
};
}
if
(
-
f
$disabled
)
{
$tinfo
->
{'
skip
'}
=
1
;
...
...
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