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
a57542e8
Commit
a57542e8
authored
Nov 17, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup --extern implementation, remove some unused variables and check arguments
parent
c341ca22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+23
-23
No files found.
mysql-test/mysql-test-run.pl
View file @
a57542e8
...
@@ -104,7 +104,6 @@ our $glob_mysql_bench_dir= undef;
...
@@ -104,7 +104,6 @@ our $glob_mysql_bench_dir= undef;
our
$glob_hostname
=
undef
;
our
$glob_hostname
=
undef
;
our
$glob_scriptname
=
undef
;
our
$glob_scriptname
=
undef
;
our
$glob_timers
=
undef
;
our
$glob_timers
=
undef
;
our
$glob_use_running_server
=
0
;
our
$glob_use_running_ndbcluster
=
0
;
our
$glob_use_running_ndbcluster
=
0
;
our
$glob_use_running_ndbcluster_slave
=
0
;
our
$glob_use_running_ndbcluster_slave
=
0
;
our
$glob_use_embedded_server
=
0
;
our
$glob_use_embedded_server
=
0
;
...
@@ -180,7 +179,10 @@ our $opt_debug;
...
@@ -180,7 +179,10 @@ our $opt_debug;
our
$opt_do_test
;
our
$opt_do_test
;
our
@opt_cases
;
# The test cases names in argv
our
@opt_cases
;
# The test cases names in argv
our
$opt_embedded_server
;
our
$opt_embedded_server
;
our
$opt_extern
;
our
$opt_extern
=
0
;
our
$opt_socket
;
our
$opt_fast
;
our
$opt_fast
;
our
$opt_force
;
our
$opt_force
;
our
$opt_reorder
=
0
;
our
$opt_reorder
=
0
;
...
@@ -238,8 +240,6 @@ our $opt_suite_timeout;
...
@@ -238,8 +240,6 @@ our $opt_suite_timeout;
my
$default_testcase_timeout
=
15
;
# 15 min max
my
$default_testcase_timeout
=
15
;
# 15 min max
my
$default_suite_timeout
=
180
;
# 3 hours max
my
$default_suite_timeout
=
180
;
# 3 hours max
our
$opt_socket
;
our
$opt_source_dist
;
our
$opt_source_dist
;
our
$opt_start_and_exit
;
our
$opt_start_and_exit
;
...
@@ -800,14 +800,6 @@ sub command_line_setup () {
...
@@ -800,14 +800,6 @@ sub command_line_setup () {
$opt_tmpdir
=
"
$opt_vardir
/tmp
"
unless
$opt_tmpdir
;
$opt_tmpdir
=
"
$opt_vardir
/tmp
"
unless
$opt_tmpdir
;
$opt_tmpdir
=~
s,/+$,,
;
# Remove ending slash if any
$opt_tmpdir
=~
s,/+$,,
;
# Remove ending slash if any
# --------------------------------------------------------------------------
# Set socket
# --------------------------------------------------------------------------
if
(
!
$opt_socket
)
{
$opt_socket
=
$mysqld_variables
{'
socket
'};
}
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Check im suport
# Check im suport
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
...
@@ -1013,7 +1005,7 @@ sub command_line_setup () {
...
@@ -1013,7 +1005,7 @@ sub command_line_setup () {
if
(
!
$opt_user
)
if
(
!
$opt_user
)
{
{
if
(
$
glob_use_running_server
)
if
(
$
opt_extern
)
{
{
$opt_user
=
"
test
";
$opt_user
=
"
test
";
}
}
...
@@ -1195,9 +1187,16 @@ sub command_line_setup () {
...
@@ -1195,9 +1187,16 @@ sub command_line_setup () {
if
(
$opt_extern
)
if
(
$opt_extern
)
{
{
$glob_use_running_server
=
1
;
# Turn off features not supported when running with extern server
$opt_skip_rpl
=
1
;
# We don't run rpl test cases
$opt_skip_rpl
=
1
;
$master
->
[
0
]
->
{'
path_sock
'}
=
$opt_socket
;
# Setup master->[0] with the settings for the extern server
$master
->
[
0
]
->
{'
path_sock
'}
=
$opt_socket
if
$opt_socket
;
}
else
{
mtr_error
("
--socket can only be used in combination with --extern
")
if
$opt_socket
;
}
}
$path_timefile
=
"
$opt_vardir
/log/mysqltest-time
";
$path_timefile
=
"
$opt_vardir
/log/mysqltest-time
";
...
@@ -1607,7 +1606,7 @@ sub environment_setup () {
...
@@ -1607,7 +1606,7 @@ sub environment_setup () {
$ENV
{'
UMASK
'}
=
"
0660
";
# The octal *string*
$ENV
{'
UMASK
'}
=
"
0660
";
# The octal *string*
$ENV
{'
UMASK_DIR
'}
=
"
0770
";
# The octal *string*
$ENV
{'
UMASK_DIR
'}
=
"
0770
";
# The octal *string*
$ENV
{'
LC_COLLATE
'}
=
"
C
";
$ENV
{'
LC_COLLATE
'}
=
"
C
";
$ENV
{'
USE_RUNNING_SERVER
'}
=
$
glob_use_running_server
;
$ENV
{'
USE_RUNNING_SERVER
'}
=
$
opt_extern
;
$ENV
{'
MYSQL_TEST_DIR
'}
=
$glob_mysql_test_dir
;
$ENV
{'
MYSQL_TEST_DIR
'}
=
$glob_mysql_test_dir
;
$ENV
{'
MYSQLTEST_VARDIR
'}
=
$opt_vardir
;
$ENV
{'
MYSQLTEST_VARDIR
'}
=
$opt_vardir
;
$ENV
{'
MYSQL_TMP_DIR
'}
=
$opt_tmpdir
;
$ENV
{'
MYSQL_TMP_DIR
'}
=
$opt_tmpdir
;
...
@@ -2502,7 +2501,7 @@ sub run_suite () {
...
@@ -2502,7 +2501,7 @@ sub run_suite () {
mtr_print_line
();
mtr_print_line
();
if
(
!
$glob_debugger
and
if
(
!
$glob_debugger
and
!
$
glob_use_running_server
and
!
$
opt_extern
and
!
$glob_use_embedded_server
)
!
$glob_use_embedded_server
)
{
{
stop_all_servers
();
stop_all_servers
();
...
@@ -2533,7 +2532,7 @@ sub initialize_servers () {
...
@@ -2533,7 +2532,7 @@ sub initialize_servers () {
datadir_setup
();
datadir_setup
();
if
(
!
$
glob_use_running_server
)
if
(
!
$
opt_extern
)
{
{
kill_running_servers
();
kill_running_servers
();
...
@@ -3065,7 +3064,7 @@ sub run_testcase ($) {
...
@@ -3065,7 +3064,7 @@ sub run_testcase ($) {
if
(
$master_restart
or
$slave_restart
)
if
(
$master_restart
or
$slave_restart
)
{
{
# Can't restart a running server that may be in use
# Can't restart a running server that may be in use
if
(
$
glob_use_running_server
)
if
(
$
opt_extern
)
{
{
mtr_report_test_name
(
$tinfo
);
mtr_report_test_name
(
$tinfo
);
$tinfo
->
{
comment
}
=
"
Can't restart a running server
";
$tinfo
->
{
comment
}
=
"
Can't restart a running server
";
...
@@ -3244,7 +3243,7 @@ sub report_failure_and_restart ($) {
...
@@ -3244,7 +3243,7 @@ sub report_failure_and_restart ($) {
print
"
Aborting:
$tinfo
->{'name'} failed in
$test_mode
mode.
";
print
"
Aborting:
$tinfo
->{'name'} failed in
$test_mode
mode.
";
print
"
To continue, re-run with '--force'.
\n
";
print
"
To continue, re-run with '--force'.
\n
";
if
(
!
$glob_debugger
and
if
(
!
$glob_debugger
and
!
$
glob_use_running_server
and
!
$
opt_extern
and
!
$glob_use_embedded_server
)
!
$glob_use_embedded_server
)
{
{
stop_all_servers
();
stop_all_servers
();
...
@@ -4696,7 +4695,8 @@ Options to run test on running server
...
@@ -4696,7 +4695,8 @@ Options to run test on running server
extern Use running server for tests FIXME DANGEROUS
extern Use running server for tests FIXME DANGEROUS
ndb-connectstring=STR Use running cluster, and connect using STR
ndb-connectstring=STR Use running cluster, and connect using STR
ndb-connectstring-slave=STR Use running slave cluster, and connect using STR
ndb-connectstring-slave=STR Use running slave cluster, and connect using STR
user=USER User for connect to server
user=USER User for connection to extern server
socket=PATH Socket for connection to extern server
Options for debugging the product
Options for debugging the product
...
@@ -4756,7 +4756,7 @@ Options not yet described, or that I want to look into more
...
@@ -4756,7 +4756,7 @@ Options not yet described, or that I want to look into more
local
local
netware
netware
sleep=SECONDS
sleep=SECONDS
socket=PATH
user-test=s
user-test=s
wait-timeout=SECONDS
wait-timeout=SECONDS
warnings
warnings
...
...
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