56
56
if defined $tinfo->{combination};
60
printf "test: $tname\n";
62
printf "%-30s ", $tname;
59
printf "%-30s ", $tname;
66
62
sub mtr_report_test_skipped ($) {
68
my $tname= $tinfo->{name};
71
65
$tinfo->{'result'}= 'MTR_RES_SKIPPED';
72
66
if ( $tinfo->{'disable'} )
80
if ( $tinfo->{'comment'} )
83
mtr_report("skip: $tname [\ncause: $cause\n$tinfo->{'comment'}\n]");
85
mtr_report("[ $cause ] $tinfo->{'comment'}");
91
mtr_report("skip: $tname");
93
mtr_report("[ $cause ]");
68
mtr_report("[ disabled ] $tinfo->{'comment'}");
70
elsif ( $tinfo->{'comment'} )
72
mtr_report("[ skipped ] $tinfo->{'comment'}");
76
mtr_report("[ skipped ]");
122
103
$timer= mtr_fromfile("$::opt_vardir/log/timer");
123
104
$tot_real_time += ($timer/1000);
124
105
$timer= sprintf "%12s", $timer;
125
### XXX: How to format this as iso6801 datetime?
127
107
$tinfo->{'result'}= 'MTR_RES_PASSED';
128
if ($::opt_subunit) {
129
mtr_report("success: $tname");
131
mtr_report("[ pass ] $timer");
108
mtr_report("[ pass ] $timer");
135
111
sub mtr_report_test_failed ($) {
136
112
my $tinfo= shift;
137
my $tname= $tinfo->{name};
140
114
$tinfo->{'result'}= 'MTR_RES_FAILED';
141
115
if ( defined $tinfo->{'timeout'} )
143
$comment.= "timeout";
145
elsif ( $tinfo->{'comment'} )
117
mtr_report("[ fail ] timeout");
122
mtr_report("[ fail ]");
125
if ( $tinfo->{'comment'} )
147
127
# The test failure has been detected by mysql-test-run.pl
148
128
# when starting the servers or due to other error, the reason for
149
129
# failing the test is saved in "comment"
150
$comment.= "$tinfo->{'comment'}";
130
mtr_report("\nERROR: $tinfo->{'comment'}");
152
132
elsif ( -f $::path_timefile )
154
134
# Test failure was detected by test tool and it's report
155
135
# about what failed has been saved to file. Display the report.
156
$comment.= mtr_fromfile($::path_timefile);
137
print mtr_fromfile($::path_timefile); # FIXME print_file() instead
160
142
# Neither this script or the test tool has recorded info
161
143
# about why the test has failed. Should be debugged.
162
$comment.= "Unexpected termination, probably when starting mysqld";
164
if ($::opt_subunit) {
165
mtr_report("failure: $tname [\n$comment\n]");
167
mtr_report("[ fail ] $comment");
144
mtr_report("\nUnexpected termination, probably when starting mysqld");;
222
199
"The log files in var/log may give you some hint\n",
223
200
"of what went wrong.\n",
224
"If you want to report this error, go to:\n",
225
"\thttp://bugs.launchpad.net/drizzle\n";
201
"If you want to report this error, please read first ",
202
"the documentation at\n",
203
"http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html\n";
227
205
if (!$::opt_extern)