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
c31ab099
Commit
c31ab099
authored
Jun 10, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run check testcase for all masters and slaves
parent
6ce84f22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+23
-8
No files found.
mysql-test/mysql-test-run.pl
View file @
c31ab099
...
...
@@ -3382,9 +3382,12 @@ sub im_stop($) {
# Before a testcase, run in record mode, save result file to var
# After testcase, run and compare with the recorded file, they should be equal!
#
sub
run_check_testcase
($)
{
sub
run_check_testcase
($
$
)
{
my
$mode
=
shift
;
my
$mysqld
=
shift
;
my
$name
=
"
check-
"
.
$mysqld
->
{'
type
'}
.
$mysqld
->
{'
idx
'};
my
$args
;
mtr_init_args
(
\
$args
);
...
...
@@ -3395,14 +3398,14 @@ sub run_check_testcase ($) {
mtr_add_arg
(
$args
,
"
--skip-safemalloc
");
mtr_add_arg
(
$args
,
"
--tmpdir=%s
",
$opt_tmpdir
);
mtr_add_arg
(
$args
,
"
--socket=%s
",
$m
aster
->
[
0
]
->
{'
path_sock
'});
mtr_add_arg
(
$args
,
"
--port=%d
",
$m
aster
->
[
0
]
->
{'
port
'});
mtr_add_arg
(
$args
,
"
--socket=%s
",
$m
ysqld
->
{'
path_sock
'});
mtr_add_arg
(
$args
,
"
--port=%d
",
$m
ysqld
->
{'
port
'});
mtr_add_arg
(
$args
,
"
--database=test
");
mtr_add_arg
(
$args
,
"
--user=%s
",
$opt_user
);
mtr_add_arg
(
$args
,
"
--password=
");
mtr_add_arg
(
$args
,
"
-R
");
mtr_add_arg
(
$args
,
"
$opt_vardir
/tmp/
check-testcas
e.result
");
mtr_add_arg
(
$args
,
"
$opt_vardir
/tmp/
$nam
e
.result
");
if
(
$mode
eq
"
before
"
)
{
...
...
@@ -3415,8 +3418,8 @@ sub run_check_testcase ($) {
if
(
$res
==
1
and
$mode
=
"
after
")
{
mtr_run
("
diff
",["
-u
",
"
$opt_vardir
/tmp/
check-testcas
e.result
",
"
$opt_vardir
/tmp/
check-testcas
e.reject
"],
"
$opt_vardir
/tmp/
$nam
e
.result
",
"
$opt_vardir
/tmp/
$nam
e
.reject
"],
"",
"",
"",
"");
}
elsif
(
$res
)
...
...
@@ -3709,14 +3712,26 @@ sub run_mysqltest ($) {
if
(
$opt_check_testcases
)
{
run_check_testcase
("
before
");
foreach
my
$mysqld
(
@
{
$master
},
@
{
$slave
})
{
if
(
$mysqld
->
{'
pid
'})
{
run_check_testcase
("
before
",
$mysqld
);
}
}
}
my
$res
=
mtr_run_test
(
$exe
,
$args
,"","",
$path_timefile
,"");
if
(
$opt_check_testcases
)
{
run_check_testcase
("
after
");
foreach
my
$mysqld
(
@
{
$master
},
@
{
$slave
})
{
if
(
$mysqld
->
{'
pid
'})
{
run_check_testcase
("
after
",
$mysqld
);
}
}
}
return
$res
;
...
...
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