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
cb3768cd
Commit
cb3768cd
authored
Jun 15, 2010
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
merge 53949
parents
070064f2
30e69ec0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+25
-4
No files found.
mysql-test/mysql-test-run.pl
View file @
cb3768cd
...
...
@@ -221,6 +221,7 @@ my $opt_start_dirty;
my
$opt_start_exit
;
my
$start_only
;
my
$opt_wait_all
;
my
$opt_user_args
;
my
$opt_repeat
=
1
;
my
$opt_retry
=
3
;
my
$opt_retry_failure
=
env_or_val
(
MTR_RETRY_FAILURE
=>
2
);
...
...
@@ -921,6 +922,7 @@ sub command_line_setup {
'
start-dirty
'
=>
\
$opt_start_dirty
,
'
start-and-exit
'
=>
\
$opt_start_exit
,
'
start
'
=>
\
$opt_start
,
'
user-args
'
=>
\
$opt_user_args
,
'
wait-all
'
=>
\
$opt_wait_all
,
'
print-testcases
'
=>
\&
collect_option
,
'
repeat=i
'
=>
\
$opt_repeat
,
...
...
@@ -1331,13 +1333,24 @@ sub command_line_setup {
$start_only
=
1
;
}
# --------------------------------------------------------------------------
# Check use of user-args
# --------------------------------------------------------------------------
if
(
$opt_user_args
)
{
mtr_error
("
--user-args only valid with --start options
")
unless
$start_only
;
mtr_error
("
--user-args cannot be combined with named suites or tests
")
if
$opt_suites
||
@opt_cases
;
}
# --------------------------------------------------------------------------
# Check use of wait-all
# --------------------------------------------------------------------------
if
(
$opt_wait_all
&&
!
$start_only
)
{
mtr_error
("
--wait-all can only be used with --start o
r --start-dirty
");
mtr_error
("
--wait-all can only be used with --start o
ptions
");
}
# --------------------------------------------------------------------------
...
...
@@ -4254,7 +4267,7 @@ sub mysqld_arguments ($$$) {
}
}
if
(
$mysql_version_id
>=
50106
)
if
(
$mysql_version_id
>=
50106
&&
!
$opt_user_args
)
{
# Turn on logging to file
mtr_add_arg
(
$args
,
"
--log-output=file
");
...
...
@@ -4292,7 +4305,7 @@ sub mysqld_arguments ($$$) {
}
}
$opt_skip_core
=
$found_skip_core
;
if
(
!
$found_skip_core
)
if
(
!
$found_skip_core
&&
!
$opt_user_args
)
{
mtr_add_arg
(
$args
,
"
%s
",
"
--core-file
");
}
...
...
@@ -4300,7 +4313,7 @@ sub mysqld_arguments ($$$) {
# Enable the debug sync facility, set default wait timeout.
# Facility stays disabled if timeout value is zero.
mtr_add_arg
(
$args
,
"
--loose-debug-sync-timeout=%s
",
$opt_debug_sync_timeout
);
$opt_debug_sync_timeout
)
unless
$opt_user_args
;
return
$args
;
}
...
...
@@ -4598,6 +4611,9 @@ sub envsubst {
sub
get_extra_opts
{
# No extra options if --user-args
return
\
@opt_extra_mysqld_opt
if
$opt_user_args
;
my
(
$mysqld
,
$tinfo
)
=
@_
;
my
$opts
=
...
...
@@ -5470,8 +5486,13 @@ Misc options
startup settings for the first specified test case
Example:
$0 --start alias &
start-and-exit Same as --start, but mysql-test-run terminates and
leaves just the server running
start-dirty Only start the servers (without initialization) for
the first specified test case
user-args In combination with start* and no test name, drops
arguments to mysqld except those speficied with
--mysqld (if any)
wait-all If --start or --start-dirty option is used, wait for all
servers to exit before finishing the process
fast Run as fast as possible, dont't wait for servers
...
...
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