~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/lib/mtr_report.pl

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 19:25:23 UTC
  • mfrom: (1410 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326192523-ibjlbt1p692vobtj
merging with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
  if ($::opt_subunit) {
60
60
    printf "test: $tname\n";
61
61
  } else {
62
 
    printf "%-30s ", $tname;
 
62
    printf "%-60s ", $tname;
63
63
  }
64
64
}
65
65
 
121
121
  {
122
122
    $timer= mtr_fromfile("$::opt_vardir/log/timer");
123
123
    $tot_real_time += ($timer/1000);
124
 
    $timer= sprintf "%12s", $timer;
 
124
    $timer= sprintf "%7s", $timer;
125
125
    ### XXX: How to format this as iso6801 datetime?
126
126
  }
127
127
  $tinfo->{'result'}= 'MTR_RES_PASSED';
128
128
  if ($::opt_subunit) {
129
129
    mtr_report("success: $tname");
130
130
  } else {
131
 
    mtr_report("[ pass ]   $timer");
 
131
    mtr_report("[ pass ] $timer");
132
132
  }
133
133
}
134
134
 
164
164
  if ($::opt_subunit) {
165
165
    mtr_report("failure: $tname [\n$comment\n]");
166
166
  } else {
167
 
    mtr_report("[ fail ]   $comment");
 
167
    mtr_report("[ fail ]\n$comment");
168
168
  }
169
169
}
170
170
 
538
538
##############################################################################
539
539
 
540
540
sub mtr_print_line () {
541
 
  print '-' x 55, "\n";
 
541
  print '-' x 80, "\n";
542
542
}
543
543
 
544
544
sub mtr_print_thick_line () {
545
 
  print '=' x 55, "\n";
 
545
  print '=' x 80, "\n";
546
546
}
547
547
 
548
548
sub mtr_print_header () {
549
549
  print "DEFAULT STORAGE ENGINE: $::opt_engine\n";
550
550
  if ( $::opt_timer )
551
551
  {
552
 
    print "TEST                           RESULT         TIME (ms)\n";
 
552
    printf "%-61s%-9s%10s\n","TEST","RESULT","TIME (ms)";
553
553
  }
554
554
  else
555
555
  {