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
3a505289
Commit
3a505289
authored
Nov 28, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/work/my50-work
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
parents
ef582b9f
2b98e19b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+20
-20
No files found.
mysql-test/mysql-test-run.pl
View file @
3a505289
...
...
@@ -1275,26 +1275,15 @@ sub datadir_list_setup () {
sub
collect_mysqld_features
()
{
#
# Execute "mysqld --no-defaults --help --verbose", that will
# print out version and a list of all features and settings
#
my
$found_variable_list_start
=
0
;
my
$spec_file
=
"
$glob_mysql_test_dir
/mysqld.spec.$$
";
if
(
mtr_run
(
$exe_mysqld
,
["
--no-defaults
",
"
--verbose
",
"
--help
"],
"",
"
$spec_file
",
"
$spec_file
",
"")
!=
0
)
{
mtr_error
("
Failed to get version and list of features from %s
",
$exe_mysqld
);
}
my
$F
=
IO::
File
->
new
(
$spec_file
)
or
mtr_error
("
can't open file
\"
$spec_file
\"
: $!
");
#
# Execute "mysqld --no-defaults --help --verbose" to get a
# of all features and settings
#
my
$list
=
`
$exe_mysqld
--no-defaults --verbose --help
`;
while
(
my
$line
=
<
$F
>
)
foreach
my
$line
(
split
('
\
n
',
$list
)
)
{
# First look for version
if
(
!
$mysql_version_id
)
...
...
@@ -1347,7 +1336,7 @@ sub collect_mysqld_features () {
}
}
}
unlink
(
$spec_file
);
mtr_error
("
Could not find version of MySQL
")
unless
$mysql_version_id
;
mtr_error
("
Could not find variabes list
")
unless
$found_variable_list_start
;
...
...
@@ -2010,7 +1999,6 @@ sub kill_running_servers () {
}
}
#
# Remove var and any directories in var/ created by previous
# tests
...
...
@@ -2062,7 +2050,6 @@ sub remove_stale_vardir () {
mtr_error
("
The destination for symlink
$opt_vardir
does not exist
")
if
!
-
d
readlink
(
$opt_vardir
);
my
$dir
=
shift
;
foreach
my
$bin
(
glob
("
$opt_vardir
/*
")
)
{
mtr_verbose
("
Removing bin
$bin
");
...
...
@@ -2124,6 +2111,19 @@ sub setup_vardir() {
}
}
if
(
!
-
d
$opt_vardir
)
{
mtr_verbose
("
Creating
$opt_vardir
");
mkpath
(
$opt_vardir
);
}
# Ensure a proper error message if vardir couldn't be created
unless
(
-
d
$opt_vardir
and
-
w
$opt_vardir
)
{
mtr_error
("
Writable 'var' directory is needed, use the
"
.
"
'--vardir=<path>' option
");
}
mkpath
("
$opt_vardir
/log
");
mkpath
("
$opt_vardir
/run
");
mkpath
("
$opt_vardir
/tmp
");
...
...
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