Changeset 988 for vendor/current/selftest/README
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/selftest/README
r740 r988 2 2 3 3 This directory contains test scripts that are useful for running a 4 bunch of tests all at once. 4 bunch of tests all at once. 5 5 6 There are two parts to this: 6 There are two parts to this: 7 7 8 8 * The test runner (selftest/selftest.pl) 9 9 * The test formatter 10 10 11 selftest.pl simply outputs subunit, which can then be formatted or analyzed 12 by tools that understand the subunit protocol. One of these tools is 11 selftest.pl simply outputs subunit, which can then be formatted or analyzed 12 by tools that understand the subunit protocol. One of these tools is 13 13 format-subunit, which is used by default as part of "make test". 14 14 15 15 Available testsuites 16 16 ==================== 17 The available testsuites are obtained from a script, usually 18 source{3,4}/selftest/tests. sh. This script should for each testsuite output19 the name of the test, the command to run and the environment that should be 17 The available testsuites are obtained from a script, usually 18 source{3,4}/selftest/tests.py. This script should for each testsuite output 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. 21 21 … … 25 25 Exit code 26 26 ------------ 27 The testsuites should exit with a non-zero exit code if at least one 27 The testsuites should exit with a non-zero exit code if at least one 28 28 test failed. Skipped tests should not influence the exit code. 29 29 30 30 Output format 31 31 ------------- 32 Testsuites can simply use the exit code to indicate whether all of their 33 tests have succeeded or one or more have failed. It is also possible to 34 provide more granular information using the Subunit protocol. 32 Testsuites can simply use the exit code to indicate whether all of their 33 tests have succeeded or one or more have failed. It is also possible to 34 provide more granular information using the Subunit protocol. 35 35 36 This protocol works by writing simple messages to standard output. Any 37 messages that can not be interpreted by this protocol are considered comments 36 This protocol works by writing simple messages to standard output. Any 37 messages that can not be interpreted by this protocol are considered comments 38 38 for the last announced test. 39 39 40 For a full description of the subunit protocol, see ../lib/subunit/README. 40 For a full description of the subunit protocol, see the README file in the subunit 41 repository at http://github.com/testing-cabal/subunit. 41 42 42 43 The following commands are Samba extensions to Subunit: 43 44 testsuite-count45 ~~~~~~~~~~~~~~~46 testsuite-count: number47 48 Announce the number of tests that is going to be run.49 44 50 45 start-testsuite … … 74 69 Environments 75 70 ============ 76 Tests often need to run against a server with particular things set up, 77 a "environment". This environment is provided by the test "target": Samba 3, 71 Tests often need to run against a server with particular things set up, 72 a "environment". This environment is provided by the test "target": Samba 3, 78 73 Samba 4 or Windows. 79 74 80 The following environments are currently available:75 The environments are currently available include 81 76 82 77 - none: No server set up, no variables set. 83 - dc : Domain controller set up. The following environment variables will78 - dc,s3dc: Domain controller set up. The following environment variables will 84 79 be set: 85 80 86 81 * USERNAME: Administrator user name 87 * PASSWORD: Administrator password 88 * DOMAIN: Domain name 89 * REALM: Realm name 90 * SERVER: DC host name 91 * SERVER_IP: DC IPv4 address 92 * NETBIOSNAME: DC NetBIOS name 93 * NETIOSALIAS: DC NetBIOS alias 82 * PASSWORD: Administrator password 83 * DOMAIN: Domain name 84 * REALM: Realm name 85 * SERVER: DC host name 86 * SERVER_IP: DC IPv4 address 87 * SERVER_IPV6: DC IPv6 address 88 * NETBIOSNAME: DC NetBIOS name 89 * NETIOSALIAS: DC NetBIOS alias 94 90 95 - member : Domain controller and member server that is joined to it set up. The91 - member,s4member,s3member: Domain controller and member server that is joined to it set up. The 96 92 following environment variables will be set: 97 93 98 94 * USERNAME: Domain administrator user name 99 100 101 102 95 * PASSWORD: Domain administrator password 96 * DOMAIN: Domain name 97 * REALM: Realm name 98 * SERVER: Name of the member server 103 99 100 See Samba.pm, Samba3.pm and Samba4.pm for the full list. 104 101 105 102 Running tests … … 110 107 make test 111 108 112 To run a quick subset (aiming for about 1 minute of testing)run::109 To run a quicker subset run:: 113 110 114 111 make quicktest
Note:
See TracChangeset
for help on using the changeset viewer.