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
84fd30b4
Commit
84fd30b4
authored
Mar 08, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-new
into shellback.(none):/home/msvensson/mysql/bug17574/my51-bug17574
parents
980434bf
64e9d98f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
12 deletions
+51
-12
mysql-test/lib/mtr_cases.pl
mysql-test/lib/mtr_cases.pl
+12
-4
mysql-test/lib/mtr_report.pl
mysql-test/lib/mtr_report.pl
+5
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+34
-8
No files found.
mysql-test/lib/mtr_cases.pl
View file @
84fd30b4
...
@@ -252,19 +252,27 @@ sub collect_one_test_case($$$$$$$) {
...
@@ -252,19 +252,27 @@ sub collect_one_test_case($$$$$$$) {
$tinfo
->
{'
slave_restart
'}
=
1
;
$tinfo
->
{'
slave_restart
'}
=
1
;
}
}
if
(
(
$::opt_with_ndbcluster
or
$::glob_use_running_ndbcluster
)
and
if
(
$::opt_with_ndbcluster_all
or
defined
mtr_match_substring
(
$tname
,"
ndb
")
)
(
$::opt_with_ndbcluster_all
or
defined
mtr_match_substring
(
$tname
,"
ndb
")
))
{
{
# This is an ndb test or all tests should be run with ndb cluster started
$tinfo
->
{'
ndb_test
'}
=
1
;
$tinfo
->
{'
ndb_test
'}
=
1
;
if
(
$::opt_skip_ndbcluster
)
{
# All ndb test's should be skipped
$tinfo
->
{'
skip
'}
=
1
;
return
;
}
}
}
else
else
{
{
# This is not a ndb test
$tinfo
->
{'
ndb_test
'}
=
0
;
if
(
$::opt_with_ndbcluster_only
)
if
(
$::opt_with_ndbcluster_only
)
{
{
# Only the ndb test should be run, all other should be skipped
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
skip
'}
=
1
;
return
;
return
;
}
}
$tinfo
->
{'
ndb_test
'}
=
0
;
}
}
# FIXME what about embedded_server + ndbcluster, skip ?!
# FIXME what about embedded_server + ndbcluster, skip ?!
...
...
mysql-test/lib/mtr_report.pl
View file @
84fd30b4
...
@@ -114,6 +114,11 @@ sub mtr_report_test_failed ($) {
...
@@ -114,6 +114,11 @@ sub mtr_report_test_failed ($) {
{
{
print
"
[ fail ] timeout
\n
";
print
"
[ fail ] timeout
\n
";
}
}
elsif
(
$tinfo
->
{'
ndb_test
'}
and
!
$::flag_ndb_status_ok
)
{
print
"
[ fail ] ndbcluster start failure
\n
";
return
;
}
else
else
{
{
print
"
[ fail ]
\n
";
print
"
[ fail ]
\n
";
...
...
mysql-test/mysql-test-run.pl
View file @
84fd30b4
...
@@ -1471,7 +1471,6 @@ sub ndbcluster_install () {
...
@@ -1471,7 +1471,6 @@ sub ndbcluster_install () {
"
--core
"],
"
--core
"],
"",
"",
"",
"")
)
"",
"",
"",
"")
)
{
{
mtr_error
("
Error ndbcluster_install
");
return
1
;
return
1
;
}
}
...
@@ -1567,7 +1566,6 @@ sub ndbcluster_install_slave () {
...
@@ -1567,7 +1566,6 @@ sub ndbcluster_install_slave () {
"
--core
"],
"
--core
"],
"",
"",
"",
"")
)
"",
"",
"",
"")
)
{
{
mtr_error
("
Error ndbcluster_install_slave
");
return
1
;
return
1
;
}
}
...
@@ -1780,17 +1778,38 @@ sub mysql_install_db () {
...
@@ -1780,17 +1778,38 @@ sub mysql_install_db () {
if
(
ndbcluster_install
()
)
if
(
ndbcluster_install
()
)
{
{
# failed to install, disable usage but flag that its no ok
if
(
$opt_force
)
{
# failed to install, disable usage and flag that its no ok
mtr_report
("
ndbcluster_install failed, continuing without cluster
");
$opt_with_ndbcluster
=
0
;
$opt_with_ndbcluster
=
0
;
$flag_ndb_status_ok
=
0
;
$flag_ndb_status_ok
=
0
;
}
}
else
{
print
"
Aborting: Failed to install ndb cluster
\n
";
print
"
To continue, re-run with '--force'.
\n
";
mtr_exit
(
1
);
}
}
if
(
ndbcluster_install_slave
()
)
if
(
ndbcluster_install_slave
()
)
{
{
# failed to install, disable usage but flag that its no ok
if
(
$opt_force
)
{
# failed to install, disable usage and flag that its no ok
mtr_report
("
ndbcluster_install_slave failed,
"
.
"
continuing without slave cluster
");
$opt_with_ndbcluster_slave
=
0
;
$opt_with_ndbcluster_slave
=
0
;
$flag_ndb_slave_status_ok
=
0
;
$flag_ndb_slave_status_ok
=
0
;
}
}
else
{
print
"
Aborting: Failed to install ndb cluster
\n
";
print
"
To continue, re-run with '--force'.
\n
";
mtr_exit
(
1
);
}
}
return
0
;
return
0
;
}
}
...
@@ -1992,6 +2011,13 @@ sub run_testcase ($) {
...
@@ -1992,6 +2011,13 @@ sub run_testcase ($) {
return
;
return
;
}
}
if
(
$tinfo
->
{'
ndb_test
'}
and
!
$flag_ndb_status_ok
)
{
mtr_report_test_name
(
$tinfo
);
mtr_report_test_failed
(
$tinfo
);
return
;
}
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# If not using a running servers we may need to stop and restart.
# If not using a running servers we may need to stop and restart.
# We restart in the case we have initiation scripts, server options
# We restart in the case we have initiation scripts, server options
...
...
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