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
230a116e
Commit
230a116e
authored
Mar 28, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn off im if extern
Remove strange comment Add run_query function
parent
2bc57a69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
16 deletions
+49
-16
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+49
-16
No files found.
mysql-test/mysql-test-run.pl
View file @
230a116e
...
@@ -848,20 +848,22 @@ sub command_line_setup () {
...
@@ -848,20 +848,22 @@ sub command_line_setup () {
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Check im suport
# Check im suport
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
if
(
!
$opt_extern
)
if
(
$opt_extern
)
{
{
if
(
$mysql_version_id
<
50000
)
{
mtr_report
("
Disable instance manager when running with extern mysqld
");
# Instance manager is not supported until 5.0
$opt_skip_im
=
1
;
$opt_skip_im
=
1
;
}
if
(
$glob_win32
)
{
mtr_report
("
Disable Instance manager - not supported on Windows
");
$opt_skip_im
=
1
;
}
}
}
elsif
(
$mysql_version_id
<
50000
)
{
# Instance manager is not supported until 5.0
$opt_skip_im
=
1
;
}
elsif
(
$glob_win32
)
{
mtr_report
("
Disable Instance manager - testing not supported on Windows
");
$opt_skip_im
=
1
;
}
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Record flag
# Record flag
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
...
@@ -1055,8 +1057,6 @@ sub command_line_setup () {
...
@@ -1055,8 +1057,6 @@ sub command_line_setup () {
# socket path names.
# socket path names.
$sockdir
=
tempdir
(
CLEANUP
=>
0
)
if
(
length
(
$sockdir
)
>
80
);
$sockdir
=
tempdir
(
CLEANUP
=>
0
)
if
(
length
(
$sockdir
)
>
80
);
# Put this into a hash, will be a C struct
$master
->
[
0
]
=
$master
->
[
0
]
=
{
{
pid
=>
0
,
pid
=>
0
,
...
@@ -1328,7 +1328,7 @@ sub collect_mysqld_features () {
...
@@ -1328,7 +1328,7 @@ sub collect_mysqld_features () {
#
#
# Execute "mysqld --no-defaults --help --verbose" to get a
# Execute "mysqld --no-defaults --help --verbose" to get a
# of all features and settings
#
list
of all features and settings
#
#
my
$list
=
`
$exe_mysqld
--no-defaults --verbose --help
`;
my
$list
=
`
$exe_mysqld
--no-defaults --verbose --help
`;
...
@@ -1392,6 +1392,40 @@ sub collect_mysqld_features () {
...
@@ -1392,6 +1392,40 @@ sub collect_mysqld_features () {
}
}
sub
run_query
($$)
{
my
(
$mysqld
,
$query
)
=
@_
;
my
$args
;
mtr_init_args
(
\
$args
);
mtr_add_arg
(
$args
,
"
--no-defaults
");
mtr_add_arg
(
$args
,
"
--user=%s
",
$opt_user
);
mtr_add_arg
(
$args
,
"
--port=%d
",
$mysqld
->
{'
port
'});
mtr_add_arg
(
$args
,
"
--socket=%s
",
$mysqld
->
{'
path_sock
'});
mtr_add_arg
(
$args
,
"
--silent
");
# Tab separated output
mtr_add_arg
(
$args
,
"
-e '%s'
",
$query
);
my
$cmd
=
"
$exe_mysql
"
.
join
('
',
@$args
);
mtr_verbose
("
cmd:
$cmd
");
return
`
$cmd
`;
}
sub
collect_mysqld_features_from_running_server
()
{
my
$list
=
run_query
(
$master
->
[
0
],
"
use mysql; SHOW VARIABLES
");
foreach
my
$line
(
split
('
\
n
',
$list
))
{
# Put variables into hash
if
(
$line
=~
/^([\S]+)[ \t]+(.*?)\r?$/
)
{
print
"
$1=
\"
$2
\"\n
";
$mysqld_variables
{
$1
}
=
$2
;
}
}
}
sub
executable_setup_im
()
{
sub
executable_setup_im
()
{
# Look for instance manager binary - mysqlmanager
# Look for instance manager binary - mysqlmanager
...
@@ -1485,7 +1519,6 @@ sub executable_setup () {
...
@@ -1485,7 +1519,6 @@ sub executable_setup () {
$exe_mysqlshow
=
mtr_exe_exists
("
$path_client_bindir
/mysqlshow
");
$exe_mysqlshow
=
mtr_exe_exists
("
$path_client_bindir
/mysqlshow
");
$exe_mysqlbinlog
=
mtr_exe_exists
("
$path_client_bindir
/mysqlbinlog
");
$exe_mysqlbinlog
=
mtr_exe_exists
("
$path_client_bindir
/mysqlbinlog
");
$exe_mysqladmin
=
mtr_exe_exists
("
$path_client_bindir
/mysqladmin
");
$exe_mysqladmin
=
mtr_exe_exists
("
$path_client_bindir
/mysqladmin
");
$exe_mysql
=
mtr_exe_exists
("
$path_client_bindir
/mysql
");
if
(
!
$opt_extern
)
if
(
!
$opt_extern
)
{
{
...
...
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