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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1817ae85
Commit
1817ae85
authored
Jan 25, 2011
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
merge 59063
parents
97d5ad6c
8c5243c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
+23
-4
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+23
-4
No files found.
mysql-test/mysql-test-run.pl
View file @
1817ae85
...
@@ -108,6 +108,7 @@ require "lib/mtr_misc.pl";
...
@@ -108,6 +108,7 @@ require "lib/mtr_misc.pl";
$SIG
{
INT
}
=
sub
{
mtr_error
("
Got ^C signal
");
};
$SIG
{
INT
}
=
sub
{
mtr_error
("
Got ^C signal
");
};
our
$mysql_version_id
;
our
$mysql_version_id
;
my
$mysql_version_extra
;
our
$glob_mysql_test_dir
;
our
$glob_mysql_test_dir
;
our
$basedir
;
our
$basedir
;
our
$bindir
;
our
$bindir
;
...
@@ -1667,12 +1668,13 @@ sub collect_mysqld_features {
...
@@ -1667,12 +1668,13 @@ sub collect_mysqld_features {
# Look for version
# Look for version
my
$exe_name
=
basename
(
$exe_mysqld
);
my
$exe_name
=
basename
(
$exe_mysqld
);
mtr_verbose
("
exe_name:
$exe_name
");
mtr_verbose
("
exe_name:
$exe_name
");
if
(
$line
=~
/^\S*$exe_name\s\sVer\s([0-9]*)\.([0-9]*)\.([0-9]*)/
)
if
(
$line
=~
/^\S*$exe_name\s\sVer\s([0-9]*)\.([0-9]*)\.([0-9]*)
([^\s]*)
/
)
{
{
#print "Major: $1 Minor: $2 Build: $3\n";
#print "Major: $1 Minor: $2 Build: $3\n";
$mysql_version_id
=
$1
*
10000
+
$2
*
100
+
$3
;
$mysql_version_id
=
$1
*
10000
+
$2
*
100
+
$3
;
#print "mysql_version_id: $mysql_version_id\n";
#print "mysql_version_id: $mysql_version_id\n";
mtr_report
("
MySQL Version $1.$2.$3
");
mtr_report
("
MySQL Version $1.$2.$3
");
$mysql_version_extra
=
$4
;
}
}
}
}
else
else
...
@@ -1757,12 +1759,13 @@ sub collect_mysqld_features_from_running_server ()
...
@@ -1757,12 +1759,13 @@ sub collect_mysqld_features_from_running_server ()
# Parse version
# Parse version
my
$version_str
=
$mysqld_variables
{'
version
'};
my
$version_str
=
$mysqld_variables
{'
version
'};
if
(
$version_str
=~
/^([0-9]*)\.([0-9]*)\.([0-9]*)/
)
if
(
$version_str
=~
/^([0-9]*)\.([0-9]*)\.([0-9]*)
([^\s]*)
/
)
{
{
#print "Major: $1 Minor: $2 Build: $3\n";
#print "Major: $1 Minor: $2 Build: $3\n";
$mysql_version_id
=
$1
*
10000
+
$2
*
100
+
$3
;
$mysql_version_id
=
$1
*
10000
+
$2
*
100
+
$3
;
#print "mysql_version_id: $mysql_version_id\n";
#print "mysql_version_id: $mysql_version_id\n";
mtr_report
("
MySQL Version $1.$2.$3
");
mtr_report
("
MySQL Version $1.$2.$3
");
$mysql_version_extra
=
$4
;
}
}
mtr_error
("
Could not find version of MySQL
")
unless
$mysql_version_id
;
mtr_error
("
Could not find version of MySQL
")
unless
$mysql_version_id
;
}
}
...
@@ -2538,6 +2541,17 @@ sub vs_config_dirs ($$) {
...
@@ -2538,6 +2541,17 @@ sub vs_config_dirs ($$) {
sub
check_ndbcluster_support
($)
{
sub
check_ndbcluster_support
($)
{
my
$mysqld_variables
=
shift
;
my
$mysqld_variables
=
shift
;
# Check if this is MySQL Cluster, ie. mysql version string ends
# with -ndb-Y.Y.Y[-status]
if
(
defined
$mysql_version_extra
&&
$mysql_version_extra
=~
/^-ndb-/
)
{
mtr_report
("
- MySQL Cluster
");
# Enable ndb engine and add more test suites
$opt_include_ndbcluster
=
1
;
$DEFAULT_SUITES
.=
"
,ndb
";
}
if
(
$opt_include_ndbcluster
)
if
(
$opt_include_ndbcluster
)
{
{
$opt_skip_ndbcluster
=
0
;
$opt_skip_ndbcluster
=
0
;
...
@@ -4220,8 +4234,10 @@ sub check_expected_crash_and_restart {
...
@@ -4220,8 +4234,10 @@ sub check_expected_crash_and_restart {
{
{
mtr_verbose
("
Crash was expected, file '
$expect_file
' exists
");
mtr_verbose
("
Crash was expected, file '
$expect_file
' exists
");
for
(
my
$waits
=
0
;
$waits
<
50
;
$waits
++
)
for
(
my
$waits
=
0
;
$waits
<
50
;
mtr_milli_sleep
(
100
),
$waits
++
)
{
{
# Race condition seen on Windows: try again until file not empty
next
if
-
z
$expect_file
;
# If last line in expect file starts with "wait"
# If last line in expect file starts with "wait"
# sleep a little and try again, thus allowing the
# sleep a little and try again, thus allowing the
# test script to control when the server should start
# test script to control when the server should start
...
@@ -4230,10 +4246,11 @@ sub check_expected_crash_and_restart {
...
@@ -4230,10 +4246,11 @@ sub check_expected_crash_and_restart {
if
(
$last_line
=~
/^wait/
)
if
(
$last_line
=~
/^wait/
)
{
{
mtr_verbose
("
Test says wait before restart
")
if
$waits
==
0
;
mtr_verbose
("
Test says wait before restart
")
if
$waits
==
0
;
mtr_milli_sleep
(
100
);
next
;
next
;
}
}
# Ignore any partial or unknown command
next
unless
$last_line
=~
/^restart/
;
# If last line begins "restart:", the rest of the line is read as
# If last line begins "restart:", the rest of the line is read as
# extra command line options to add to the restarted mysqld.
# extra command line options to add to the restarted mysqld.
# Anything other than 'wait' or 'restart:' (with a colon) will
# Anything other than 'wait' or 'restart:' (with a colon) will
...
@@ -4617,6 +4634,8 @@ sub mysqld_start ($$) {
...
@@ -4617,6 +4634,8 @@ sub mysqld_start ($$) {
my
@all_opts
=
@$extra_opts
;
my
@all_opts
=
@$extra_opts
;
if
(
exists
$mysqld
->
{'
restart_opts
'})
{
if
(
exists
$mysqld
->
{'
restart_opts
'})
{
push
(
@all_opts
,
@
{
$mysqld
->
{'
restart_opts
'}});
push
(
@all_opts
,
@
{
$mysqld
->
{'
restart_opts
'}});
mtr_verbose
(
My::Options::
toStr
("
mysqld_start restart
",
@
{
$mysqld
->
{'
restart_opts
'}}));
}
}
mysqld_arguments
(
$args
,
$mysqld
,
\
@all_opts
);
mysqld_arguments
(
$args
,
$mysqld
,
\
@all_opts
);
...
...
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