~ignacio-nin/percona-xtrabackup/bug834657-1.6

« back to all changes in this revision

Viewing changes to test/subunit.sh

  • Committer: Stewart Smith
  • Date: 2011-06-12 09:57:00 UTC
  • mto: This revision was merged to the branch mainline in revision 264.
  • Revision ID: stewart@flamingspork.com-20110612095700-90pmeh5ag7lhdpst
make subunit.sh output time so that we can time how long each test takes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
subunit_start_test () {
18
18
  # emit the current protocol start-marker for test $1
 
19
  echo "time: `date -u '+%Y-%m-%d %H:%M:%S'`"
19
20
  echo "test: $1"
20
21
}
21
22
 
22
23
 
23
24
subunit_pass_test () {
24
25
  # emit the current protocol test passed marker for test $1
 
26
  echo "time: `date -u '+%Y-%m-%d %H:%M:%S'`"
25
27
  echo "success: $1"
26
28
}
27
29
 
31
33
  # the error text.
32
34
  # we use stdin because the failure message can be arbitrarily long, and this
33
35
  # makes it convenient to write in scripts (using <<END syntax.
 
36
  echo "time: `date -u '+%Y-%m-%d %H:%M:%S'`"
34
37
  echo "failure: $1 ["
35
38
  cat -
36
39
  echo "]"
42
45
  # the error text.
43
46
  # we use stdin because the failure message can be arbitrarily long, and this
44
47
  # makes it convenient to write in scripts (using <<END syntax.
 
48
  echo "time: `date -u '+%Y-%m-%d %H:%M:%S'`"
45
49
  echo "error: $1 ["
46
50
  cat -
47
51
  echo "]"
50
54
 
51
55
subunit_skip_test () {
52
56
  # emit the current protocol test skipped marker for test $1
 
57
  echo "time: `date -u '+%Y-%m-%d %H:%M:%S'`"
53
58
  echo "skip: $1"
54
59
}
55
60