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
627a0bf0
Commit
627a0bf0
authored
Nov 28, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
parents
04d5a42b
cc747a02
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
56 deletions
+94
-56
Docs/Makefile.am
Docs/Makefile.am
+6
-6
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+88
-50
No files found.
Docs/Makefile.am
View file @
627a0bf0
...
@@ -26,7 +26,7 @@ all-local: $(TXT_FILES)
...
@@ -26,7 +26,7 @@ all-local: $(TXT_FILES)
# make sure that "make install" installs the info page, too
# make sure that "make install" installs the info page, too
# automake only seems to take care of this automatically,
# automake only seems to take care of this automatically,
# if we're building the info page from texi directly.
# if we're building the info page from texi directly.
install-data-hook
:
mysql.info
install-data-hook
:
$(srcdir)/
mysql.info
$(mkinstalldirs)
$(DESTDIR)$(infodir)
$(mkinstalldirs)
$(DESTDIR)$(infodir)
$(INSTALL_DATA)
$(srcdir)
/mysql.info
$(DESTDIR)$(infodir)
$(INSTALL_DATA)
$(srcdir)
/mysql.info
$(DESTDIR)$(infodir)
...
@@ -44,22 +44,22 @@ CLEAN_FILES: $(TXT_FILES)
...
@@ -44,22 +44,22 @@ CLEAN_FILES: $(TXT_FILES)
GT
=
$(srcdir)
/Support/generate-text-files.pl
GT
=
$(srcdir)
/Support/generate-text-files.pl
../INSTALL-SOURCE
:
mysql.info $(GT)
../INSTALL-SOURCE
:
$(srcdir)/
mysql.info $(GT)
perl
-w
$(GT)
$(srcdir)
/mysql.info
"installing-source"
"windows-source-build"
>
$@
perl
-w
$(GT)
$(srcdir)
/mysql.info
"installing-source"
"windows-source-build"
>
$@
../INSTALL-WIN-SOURCE
:
mysql.info $(GT)
../INSTALL-WIN-SOURCE
:
$(srcdir)/
mysql.info $(GT)
perl
-w
$(GT)
$(srcdir)
/mysql.info
"windows-source-build"
"post-installation"
>
$@
perl
-w
$(GT)
$(srcdir)
/mysql.info
"windows-source-build"
"post-installation"
>
$@
# We put the description for the binary installation here so that
# We put the description for the binary installation here so that
# people who download source wont have to see it. It is moved up to
# people who download source wont have to see it. It is moved up to
# the toplevel by the script that makes the binary tar files.
# the toplevel by the script that makes the binary tar files.
INSTALL-BINARY
:
mysql.info $(GT)
INSTALL-BINARY
:
$(srcdir)/
mysql.info $(GT)
perl
-w
$(GT)
$(srcdir)
/mysql.info
"installing-binary"
"installing-source"
>
$@
perl
-w
$(GT)
$(srcdir)
/mysql.info
"installing-binary"
"installing-source"
>
$@
../EXCEPTIONS-CLIENT
:
mysql.info $(GT)
../EXCEPTIONS-CLIENT
:
$(srcdir)/
mysql.info $(GT)
perl
-w
$(GT)
$(srcdir)
/mysql.info
"mysql-floss-license-exception"
"function-index"
>
$@
perl
-w
$(GT)
$(srcdir)
/mysql.info
"mysql-floss-license-exception"
"function-index"
>
$@
../support-files/MacOSX/ReadMe.txt
:
mysql.info $(GT)
../support-files/MacOSX/ReadMe.txt
:
$(srcdir)/
mysql.info $(GT)
perl
-w
$(GT)
$(srcdir)
/mysql.info
"mac-os-x-installation"
"netware-installation"
>
$@
perl
-w
$(GT)
$(srcdir)
/mysql.info
"mac-os-x-installation"
"netware-installation"
>
$@
# Don't update the files from bitkeeper
# Don't update the files from bitkeeper
...
...
mysql-test/mysql-test-run.pl
View file @
627a0bf0
...
@@ -318,7 +318,7 @@ sub main ();
...
@@ -318,7 +318,7 @@ sub main ();
sub
initial_setup
();
sub
initial_setup
();
sub
command_line_setup
();
sub
command_line_setup
();
sub
set_mtr_build_thread_ports
($);
sub
set_mtr_build_thread_ports
($);
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
();
...
@@ -468,6 +468,15 @@ sub command_line_setup () {
...
@@ -468,6 +468,15 @@ sub command_line_setup () {
$im_mysqld1_port
=
9313
;
$im_mysqld1_port
=
9313
;
$im_mysqld2_port
=
9314
;
$im_mysqld2_port
=
9314
;
# If so requested, we try to avail ourselves of a unique build thread number.
if
(
$ENV
{'
MTR_BUILD_THREAD
'}
)
{
if
(
lc
(
$ENV
{'
MTR_BUILD_THREAD
'})
eq
'
auto
'
)
{
print
"
Requesting build thread...
";
$ENV
{'
MTR_BUILD_THREAD
'}
=
mtr_require_unique_id_and_wait
("
/tmp/mysql-test-ports
",
200
,
299
);
print
"
got
"
.
$ENV
{'
MTR_BUILD_THREAD
'}
.
"
\n
";
}
}
if
(
$ENV
{'
MTR_BUILD_THREAD
'}
)
if
(
$ENV
{'
MTR_BUILD_THREAD
'}
)
{
{
set_mtr_build_thread_ports
(
$ENV
{'
MTR_BUILD_THREAD
'});
set_mtr_build_thread_ports
(
$ENV
{'
MTR_BUILD_THREAD
'});
...
@@ -668,7 +677,7 @@ sub command_line_setup () {
...
@@ -668,7 +677,7 @@ sub command_line_setup () {
# number as early as possible
# number as early as possible
#
#
# Look for the client binaries
# Look for the client binaries
directory
$path_client_bindir
=
mtr_path_exists
("
$glob_basedir
/client_release
",
$path_client_bindir
=
mtr_path_exists
("
$glob_basedir
/client_release
",
"
$glob_basedir
/client_debug
",
"
$glob_basedir
/client_debug
",
vs_config_dirs
('
client
',
''),
vs_config_dirs
('
client
',
''),
...
@@ -802,13 +811,6 @@ sub command_line_setup () {
...
@@ -802,13 +811,6 @@ sub command_line_setup () {
$opt_vardir
=
"
$glob_mysql_test_dir
/
$opt_vardir
";
$opt_vardir
=
"
$glob_mysql_test_dir
/
$opt_vardir
";
}
}
# Ensure a proper error message
mkpath
("
$opt_vardir
");
unless
(
-
d
$opt_vardir
and
-
w
$opt_vardir
)
{
mtr_error
("
Writable 'var' directory is needed, use the '--vardir' option
");
}
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Set tmpdir
# Set tmpdir
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
...
@@ -1243,7 +1245,7 @@ sub set_mtr_build_thread_ports() {
...
@@ -1243,7 +1245,7 @@ sub set_mtr_build_thread_ports() {
}
}
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
=
(
...
@@ -2008,10 +2010,6 @@ sub kill_running_servers () {
...
@@ -2008,10 +2010,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
...
@@ -2034,18 +2032,25 @@ sub remove_stale_vardir () {
...
@@ -2034,18 +2032,25 @@ 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
(
$opt_mem
and
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
mtr_verbose
("
Removing
$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
);
}
}
elsif
(
$opt_mem
)
{
# Just remove the "var" symlink
mtr_report
("
WARNING: Removing '
$opt_vardir
' symlink it's wrong
");
mtr_verbose
("
unlink(
$opt_vardir
)
");
unlink
(
$opt_vardir
);
}
else
else
{
{
# Some users creates a soft link in mysql-test/var to another area
# Some users creates a soft link in mysql-test/var to another area
...
@@ -2053,6 +2058,10 @@ sub remove_stale_vardir () {
...
@@ -2053,6 +2058,10 @@ sub remove_stale_vardir () {
mtr_report
("
WARNING: Using the 'mysql-test/var' symlink
");
mtr_report
("
WARNING: Using the 'mysql-test/var' symlink
");
# Make sure the directory where it points exist
mtr_error
("
The destination for symlink
$opt_vardir
does not exist
")
if
!
-
d
readlink
(
$opt_vardir
);
my
$dir
=
shift
;
my
$dir
=
shift
;
foreach
my
$bin
(
glob
("
$opt_vardir
/*
")
)
foreach
my
$bin
(
glob
("
$opt_vardir
/*
")
)
{
{
...
@@ -2091,18 +2100,28 @@ sub remove_stale_vardir () {
...
@@ -2091,18 +2100,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
#
# Running with "var" in mysql-test dir
#
if
(
-
l
$opt_vardir
)
{
# it's a symlink
# Make sure the directory where it points exist
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
");
mtr_verbose
("
Creating
$opt_mem
");
mkpath
(
$opt_mem
);
mkpath
(
$opt_mem
);
mtr_report
("
Symlinking 'var' to '
$opt_mem
'
");
mtr_report
("
Symlinking 'var' to '
$opt_mem
'
");
symlink
(
$opt_mem
,
$opt_vardir
);
symlink
(
$opt_mem
,
$opt_vardir
);
}
# Put a small file to recognize this dir was created by --mem
mtr_verbose
("
Creating
"
.
created_by_mem_filename
());
mtr_tofile
(
created_by_mem_filename
(),
$opt_mem
);
}
}
mkpath
("
$opt_vardir
/log
");
mkpath
("
$opt_vardir
/log
");
...
@@ -2655,7 +2674,7 @@ sub run_suite () {
...
@@ -2655,7 +2674,7 @@ sub run_suite () {
sub
initialize_servers
()
{
sub
initialize_servers
()
{
datadir_setup
();
datadir_
list_
setup
();
if
(
$opt_extern
)
if
(
$opt_extern
)
{
{
...
@@ -3056,26 +3075,15 @@ sub do_before_run_mysqltest($)
...
@@ -3056,26 +3075,15 @@ sub do_before_run_mysqltest($)
unlink
("
$result_dir
/
$tname
.log
");
unlink
("
$result_dir
/
$tname
.log
");
unlink
("
$result_dir
/
$tname
.warnings
");
unlink
("
$result_dir
/
$tname
.warnings
");
mtr_tonewfile
(
$path_current_test_log
,"
$tname
\n
");
# Always tell where we are
# output current test to ndbcluster log file to enable diagnostics
mtr_tofile
(
$path_ndb_testrun_log
,"
CURRENT TEST
$tname
\n
");
mtr_tofile
(
$master
->
[
0
]
->
{'
path_myerr
'},"
CURRENT_TEST:
$tname
\n
");
if
(
$master
->
[
1
]
->
{'
pid
'}
)
{
mtr_tofile
(
$master
->
[
1
]
->
{'
path_myerr
'},"
CURRENT_TEST:
$tname
\n
");
}
if
(
$mysql_version_id
<
50000
)
if
(
$mysql_version_id
<
50000
)
{
{
# Set envir
no
ment variable NDB_STATUS_OK to 1
# Set envir
on
ment variable NDB_STATUS_OK to 1
# if script decided to run mysqltest cluster _is_ installed ok
# if script decided to run mysqltest cluster _is_ installed ok
$ENV
{'
NDB_STATUS_OK
'}
=
"
1
";
$ENV
{'
NDB_STATUS_OK
'}
=
"
1
";
}
}
elsif
(
$mysql_version_id
<
50100
)
elsif
(
$mysql_version_id
<
50100
)
{
{
# Set envir
no
ment variable NDB_STATUS_OK to YES
# Set envir
on
ment variable NDB_STATUS_OK to YES
# if script decided to run mysqltest cluster _is_ installed ok
# if script decided to run mysqltest cluster _is_ installed ok
$ENV
{'
NDB_STATUS_OK
'}
=
"
YES
";
$ENV
{'
NDB_STATUS_OK
'}
=
"
YES
";
}
}
...
@@ -3086,9 +3094,9 @@ sub do_after_run_mysqltest($)
...
@@ -3086,9 +3094,9 @@ sub do_after_run_mysqltest($)
my
$tinfo
=
shift
;
my
$tinfo
=
shift
;
my
$tname
=
$tinfo
->
{'
name
'};
my
$tname
=
$tinfo
->
{'
name
'};
mtr_tofile
(
$path_mysqltest_log
,"
CURRENT TEST
$tname
\n
");
# Save info from this testcase run to mysqltest.log
# Save info from this testcase run to mysqltest.log
mtr_appendfile_to_file
(
$path_current_test_log
,
$path_mysqltest_log
)
if
-
f
$path_current_test_log
;
mtr_appendfile_to_file
(
$path_timefile
,
$path_mysqltest_log
)
mtr_appendfile_to_file
(
$path_timefile
,
$path_mysqltest_log
)
if
-
f
$path_timefile
;
if
-
f
$path_timefile
;
...
@@ -3098,6 +3106,26 @@ sub do_after_run_mysqltest($)
...
@@ -3098,6 +3106,26 @@ sub do_after_run_mysqltest($)
}
}
sub
run_testcase_mark_logs
($)
{
my
(
$log_msg
)
=
@_
;
# Write a marker to all log files
# The file indicating current test name
mtr_tonewfile
(
$path_current_test_log
,
$log_msg
);
# each mysqld's .err file
foreach
my
$mysqld
(
@
{
$master
},
@
{
$slave
})
{
mtr_tofile
(
$mysqld
->
{
path_myerr
},
$log_msg
);
}
# ndbcluster log file
mtr_tofile
(
$path_ndb_testrun_log
,
$log_msg
);
}
sub
find_testcase_skipped_reason
($)
sub
find_testcase_skipped_reason
($)
{
{
my
(
$tinfo
)
=
@_
;
my
(
$tinfo
)
=
@_
;
...
@@ -3217,6 +3245,10 @@ sub run_testcase ($) {
...
@@ -3217,6 +3245,10 @@ sub run_testcase ($) {
run_testcase_stop_servers
(
$tinfo
,
$master_restart
,
$slave_restart
);
run_testcase_stop_servers
(
$tinfo
,
$master_restart
,
$slave_restart
);
}
}
# Write to all log files to indicate start of testcase
run_testcase_mark_logs
("
CURRENT_TEST:
$tinfo
->{name}
\n
");
my
$died
=
mtr_record_dead_children
();
my
$died
=
mtr_record_dead_children
();
if
(
$died
or
$master_restart
or
$slave_restart
)
if
(
$died
or
$master_restart
or
$slave_restart
)
{
{
...
@@ -3558,6 +3590,12 @@ sub mysqld_arguments ($$$$$) {
...
@@ -3558,6 +3590,12 @@ sub mysqld_arguments ($$$$$) {
mtr_add_arg
(
$args
,
"
%s--ndb-extra-logging
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--ndb-extra-logging
",
$prefix
);
}
}
}
}
if
(
$mysql_version_id
<=
50106
)
{
# Force mysqld to use log files up until 5.1.6
mtr_add_arg
(
$args
,
"
%s--log=%s
",
$prefix
,
$master
->
[
0
]
->
{'
path_mylog
'});
}
}
}
if
(
$type
eq
'
slave
'
)
if
(
$type
eq
'
slave
'
)
...
@@ -3575,8 +3613,6 @@ sub mysqld_arguments ($$$$$) {
...
@@ -3575,8 +3613,6 @@ sub mysqld_arguments ($$$$$) {
mtr_add_arg
(
$args
,
"
%s--log-slave-updates
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--log-slave-updates
",
$prefix
);
}
}
mtr_add_arg
(
$args
,
"
%s--log=%s
",
$prefix
,
$slave
->
[
$idx
]
->
{'
path_mylog
'});
mtr_add_arg
(
$args
,
"
%s--master-retry-count=10
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--master-retry-count=10
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--pid-file=%s
",
$prefix
,
mtr_add_arg
(
$args
,
"
%s--pid-file=%s
",
$prefix
,
$slave
->
[
$idx
]
->
{'
path_pid
'});
$slave
->
[
$idx
]
->
{'
path_pid
'});
...
@@ -3637,6 +3673,13 @@ sub mysqld_arguments ($$$$$) {
...
@@ -3637,6 +3673,13 @@ sub mysqld_arguments ($$$$$) {
mtr_add_arg
(
$args
,
"
%s--ndb-extra-logging
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--ndb-extra-logging
",
$prefix
);
}
}
}
}
if
(
$mysql_version_id
<=
50106
)
{
# Force mysqld to use log files up until 5.1.6
mtr_add_arg
(
$args
,
"
%s--log=%s
",
$prefix
,
$master
->
[
0
]
->
{'
path_mylog
'});
}
}
# end slave
}
# end slave
if
(
$opt_debug
)
if
(
$opt_debug
)
...
@@ -3713,7 +3756,6 @@ sub mysqld_arguments ($$$$$) {
...
@@ -3713,7 +3756,6 @@ sub mysqld_arguments ($$$$$) {
elsif
(
$type
eq
'
master
'
)
elsif
(
$type
eq
'
master
'
)
{
{
mtr_add_arg
(
$args
,
"
%s--open-files-limit=1024
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--open-files-limit=1024
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--log=%s
",
$prefix
,
$master
->
[
0
]
->
{'
path_mylog
'});
}
}
return
$args
;
return
$args
;
...
@@ -4218,8 +4260,6 @@ sub run_testcase_start_servers($) {
...
@@ -4218,8 +4260,6 @@ sub run_testcase_start_servers($) {
return
1
;
return
1
;
}
}
}
}
mtr_tofile
(
$master
->
[
1
]
->
{'
path_myerr
'},"
CURRENT_TEST:
$tname
\n
");
mysqld_start
(
$master
->
[
1
],
$tinfo
->
{'
master_opt
'},
[]
);
mysqld_start
(
$master
->
[
1
],
$tinfo
->
{'
master_opt
'},
[]
);
}
}
...
@@ -4247,8 +4287,6 @@ sub run_testcase_start_servers($) {
...
@@ -4247,8 +4287,6 @@ sub run_testcase_start_servers($) {
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
if
(
$tinfo
->
{'
slave_num
'}
)
if
(
$tinfo
->
{'
slave_num
'}
)
{
{
mtr_tofile
(
$slave
->
[
0
]
->
{'
path_myerr
'},"
CURRENT_TEST:
$tname
\n
");
restore_slave_databases
(
$tinfo
->
{'
slave_num
'});
restore_slave_databases
(
$tinfo
->
{'
slave_num
'});
do_before_start_slave
(
$tinfo
);
do_before_start_slave
(
$tinfo
);
...
...
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