Last change
on this file was 745, checked in by Silvan Scherrer, 13 years ago |
Samba Server: updated trunk to 3.6.0
|
File size:
1.7 KB
|
Line | |
---|
1 | #
|
---|
2 | # subunit.sh: shell functions to report test status via the subunit protocol.
|
---|
3 | # Copyright (C) 2006 Robert Collins <robertc@robertcollins.net>
|
---|
4 | #
|
---|
5 | # Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
|
---|
6 | # license at the users choice. A copy of both licenses are available in the
|
---|
7 | # project source as Apache-2.0 and BSD. You may not use this file except in
|
---|
8 | # compliance with one of these two licences.
|
---|
9 | #
|
---|
10 | # Unless required by applicable law or agreed to in writing, software
|
---|
11 | # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
|
---|
12 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
13 | # license you chose for the specific language governing permissions and
|
---|
14 | # limitations under that license.
|
---|
15 | #
|
---|
16 |
|
---|
17 | subunit_start_test () {
|
---|
18 | # emit the current protocol start-marker for test $1
|
---|
19 | echo "test: $1"
|
---|
20 | }
|
---|
21 |
|
---|
22 |
|
---|
23 | subunit_pass_test () {
|
---|
24 | # emit the current protocol test passed marker for test $1
|
---|
25 | echo "success: $1"
|
---|
26 | }
|
---|
27 |
|
---|
28 |
|
---|
29 | subunit_fail_test () {
|
---|
30 | # emit the current protocol fail-marker for test $1, and emit stdin as
|
---|
31 | # the error text.
|
---|
32 | # we use stdin because the failure message can be arbitrarily long, and this
|
---|
33 | # makes it convenient to write in scripts (using <<END syntax.
|
---|
34 | echo "failure: $1 ["
|
---|
35 | cat -
|
---|
36 | echo "]"
|
---|
37 | }
|
---|
38 |
|
---|
39 |
|
---|
40 | subunit_error_test () {
|
---|
41 | # emit the current protocol error-marker for test $1, and emit stdin as
|
---|
42 | # the error text.
|
---|
43 | # we use stdin because the failure message can be arbitrarily long, and this
|
---|
44 | # makes it convenient to write in scripts (using <<END syntax.
|
---|
45 | echo "error: $1 ["
|
---|
46 | cat -
|
---|
47 | echo "]"
|
---|
48 | }
|
---|
49 |
|
---|
50 |
|
---|
51 | subunit_skip_test () {
|
---|
52 | # emit the current protocol test skipped marker for test $1
|
---|
53 | echo "skip: $1"
|
---|
54 | }
|
---|
55 |
|
---|
56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.