Changeset 740 for vendor/current/selftest/README
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/selftest/README
r414 r740 11 11 selftest.pl simply outputs subunit, which can then be formatted or analyzed 12 12 by tools that understand the subunit protocol. One of these tools is 13 format-subunit .pl, which is used by default as part of "make test".13 format-subunit, which is used by default as part of "make test". 14 14 15 15 Available testsuites 16 16 ==================== 17 17 The available testsuites are obtained from a script, usually 18 s elftest/samba{3,4}_tests.sh. This script should for each testsuite output18 source{3,4}/selftest/tests.sh. This script should for each testsuite output 19 19 the name of the test, the command to run and the environment that should be 20 20 provided. Use the included "plantest" function to generate the required output. … … 38 38 for the last announced test. 39 39 40 Accepted commands are: 40 For a full description of the subunit protocol, see ../lib/subunit/README. 41 41 42 test 43 ~~~~ 44 test: <NAME> 45 46 Announce that a new test with the specified name is starting 47 48 success 49 ~~~~~~~ 50 success: <NAME> 51 52 Announce that the test with the specified name is done and ran successfully. 53 54 failure 55 ~~~~~~~ 56 failure: <NAME> 57 failure: <NAME> [ REASON ] 58 59 Announce that the test with the specified name failed. Optionally, it is 60 possible to specify a reason it failed. 61 62 The alias "fail" will also work. 63 64 xfail 65 ~~~~~ 66 xfail: <NAME> 67 xfail: <NAME> [ REASON ] 68 69 Announce that the test with the specified name failed but that the failure 70 was expected, e.g. it's a test for a known bug that hasn't been fixed yet. 71 Alternatively it is also possible to simply return "failure:" here but 72 specify in the samba4-knownfailures file that it is failing. 73 74 skip 75 ~~~~ 76 skip: <NAME> 77 skip: <NAME> [ REASON ] 78 79 Announce that the test with the specified name was skipped. Optionally a 80 reason can be specified. 81 82 time 83 ~~~~ 84 time: YYYY-MM-DD HH:mm:ssZ 85 86 Announce the current time. This may be used to calculate the duration of 87 various tests. 88 89 The following are Samba extensions to Subunit: 42 The following commands are Samba extensions to Subunit: 90 43 91 44 testsuite-count … … 96 49 97 50 start-testsuite 98 ~~~~~~~~~ 51 ~~~~~~~~~~~~~~~ 99 52 start-testsuite: name 100 53
Note:
See TracChangeset
for help on using the changeset viewer.