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
0e58c1ab
Commit
0e58c1ab
authored
Nov 28, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/work/my41-work
into neptunus.(none):/home/msvensson/mysql/work/my50-work
parents
7239e613
acf75687
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
17 deletions
+25
-17
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+25
-17
No files found.
mysql-test/mysql-test-run.pl
View file @
0e58c1ab
...
@@ -310,7 +310,7 @@ my $source_dist= 0;
...
@@ -310,7 +310,7 @@ my $source_dist= 0;
sub
main
();
sub
main
();
sub
initial_setup
();
sub
initial_setup
();
sub
command_line_setup
();
sub
command_line_setup
();
sub
datadir_setup
();
sub
datadir_
list_
setup
();
sub
executable_setup
();
sub
executable_setup
();
sub
environment_setup
();
sub
environment_setup
();
sub
kill_running_servers
();
sub
kill_running_servers
();
...
@@ -1217,7 +1217,7 @@ sub command_line_setup () {
...
@@ -1217,7 +1217,7 @@ sub command_line_setup () {
$path_snapshot
=
"
$opt_tmpdir
/snapshot_
$opt_master_myport
/
";
$path_snapshot
=
"
$opt_tmpdir
/snapshot_
$opt_master_myport
/
";
}
}
sub
datadir_setup
()
{
sub
datadir_
list_
setup
()
{
# Make a list of all data_dirs
# Make a list of all data_dirs
@data_dir_lst
=
(
@data_dir_lst
=
(
...
@@ -1981,10 +1981,6 @@ sub kill_running_servers () {
...
@@ -1981,10 +1981,6 @@ sub kill_running_servers () {
}
}
}
}
sub
created_by_mem_filename
(){
return
"
$glob_mysql_test_dir
/var/created_by_mem
";
}
#
#
# Remove var and any directories in var/ created by previous
# Remove var and any directories in var/ created by previous
...
@@ -2007,14 +2003,16 @@ sub remove_stale_vardir () {
...
@@ -2007,14 +2003,16 @@ sub remove_stale_vardir () {
if
(
-
l
$opt_vardir
)
if
(
-
l
$opt_vardir
)
{
{
# var is a symlink
# var is a symlink
if
(
-
f
created_by_mem_filename
()
)
if
(
readlink
(
$opt_vardir
)
eq
$opt_mem
)
{
{
# Remove the directory which the link points at
# Remove the directory which the link points at
mtr_verbose
("
Removing
"
.
readlink
(
$opt_vardir
));
mtr_verbose
("
Removing
"
.
readlink
(
$opt_vardir
));
rmtree
(
readlink
(
$opt_vardir
));
rmtree
(
readlink
(
$opt_vardir
));
# Remove the entire "var" dir
# Remove the entire "var" dir
mtr_verbose
("
Removing
$opt_vardir
/
");
mtr_verbose
("
Removing
$opt_vardir
/
");
rmtree
("
$opt_vardir
/
");
rmtree
("
$opt_vardir
/
");
# Remove the "var" symlink
# Remove the "var" symlink
mtr_verbose
("
unlink(
$opt_vardir
)
");
mtr_verbose
("
unlink(
$opt_vardir
)
");
unlink
(
$opt_vardir
);
unlink
(
$opt_vardir
);
...
@@ -2064,18 +2062,28 @@ sub remove_stale_vardir () {
...
@@ -2064,18 +2062,28 @@ sub remove_stale_vardir () {
sub
setup_vardir
()
{
sub
setup_vardir
()
{
mtr_report
("
Creating Directories
");
mtr_report
("
Creating Directories
");
if
(
$opt_
mem
)
if
(
$opt_
vardir
eq
$default_vardir
)
{
{
# Runinng with var as a link to some "memory" location, normally tmpfs
#
mtr_verbose
("
Creating
$opt_mem
");
# Running with "var" in mysql-test dir
mkpath
(
$opt_mem
);
#
if
(
-
l
$opt_vardir
)
{
# it's a symlink
mtr_report
("
Symlinking 'var' to '
$opt_mem
'
");
# Make sure the directory where it points exist
symlink
(
$opt_mem
,
$opt_vardir
);
mtr_error
("
The destination for symlink
$opt_vardir
does not exist
")
if
!
-
d
readlink
(
$opt_vardir
);
}
elsif
(
$opt_mem
)
{
# Runinng with "var" as a link to some "memory" location, normally tmpfs
mtr_verbose
("
Creating
$opt_mem
");
mkpath
(
$opt_mem
);
# Put a small file to recognize this dir was created by --mem
mtr_report
("
Symlinking 'var' to '
$opt_mem
'
");
mtr_verbose
("
Creating
"
.
created_by_mem_filename
()
);
symlink
(
$opt_mem
,
$opt_vardir
);
mtr_tofile
(
created_by_mem_filename
(),
$opt_mem
);
}
}
}
mkpath
("
$opt_vardir
/log
");
mkpath
("
$opt_vardir
/log
");
...
@@ -2622,7 +2630,7 @@ sub run_suite () {
...
@@ -2622,7 +2630,7 @@ sub run_suite () {
sub
initialize_servers
()
{
sub
initialize_servers
()
{
datadir_setup
();
datadir_
list_
setup
();
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