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
ea692e90
Commit
ea692e90
authored
17 years ago
by
msvensson@pilot.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve report on test execution time
Define tot_real_tim locally in mtr_report.pl
parent
0d930158
Branches unavailable
Tags unavailable
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
mysql-test/lib/mtr_report.pl
mysql-test/lib/mtr_report.pl
+8
-3
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+0
-1
No files found.
mysql-test/lib/mtr_report.pl
View file @
ea692e90
...
...
@@ -38,6 +38,9 @@ sub mtr_child_error (@);
sub
mtr_debug
(@);
sub
mtr_verbose
(@);
my
$tot_real_time
=
0
;
##############################################################################
#
...
...
@@ -142,7 +145,7 @@ sub mtr_report_test_passed ($) {
if
(
$::opt_timer
and
-
f
"
$::opt_vardir/log/timer
"
)
{
$timer
=
mtr_fromfile
("
$::opt_vardir/log/timer
");
$
::glob_
tot_real_time
+=
(
$timer
/
1000
);
$tot_real_time
+=
(
$timer
/
1000
);
$timer
=
sprintf
"
%12s
",
$timer
;
}
$tinfo
->
{'
result
'}
=
'
MTR_RES_PASSED
';
...
...
@@ -243,8 +246,10 @@ sub mtr_report_stats ($) {
if
(
$::opt_timer
)
{
print
"
Spent $::glob_tot_real_time seconds actually executing testcases
\n
"
use
English
;
mtr_report
("
Spent
",
sprintf
("
%.3f
",
$tot_real_time
),"
of
",
time
-
$BASETIME
,
"
seconds executing testcases
");
}
# ----------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
mysql-test/mysql-test-run.pl
View file @
ea692e90
...
...
@@ -307,7 +307,6 @@ our @data_dir_lst;
our
$used_binlog_format
;
our
$used_default_engine
;
our
$debug_compiled_binaries
;
our
$glob_tot_real_time
=
0
;
our
%
mysqld_variables
;
...
...
This diff is collapsed.
Click to expand it.
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