| 18 | | <a href=#point8>8. Platform-specific Notes</a><br> |
| 19 | | <a href=#point8.1> 8.1. Debian/Ubuntu</a><br> |
| 20 | | <a href=#point8.2> 8.2. CentOS 5.4</a><br> |
| 21 | | <a href=#point8.2.1> 8.2.1 Dependencies</a><br> |
| 22 | | <a href=#point8.3> 8.3. MacOS</a><br> |
| 23 | | <a href=#point8.4> 8.4. Windows</a><br> |
| 24 | | <a href=#point8.4.1> 8.4.1. What if that doesn't work?</a><br> |
| 25 | | <a href=#point8.4.2> 8.4.2. How do I make it run as a Windows service?</a><br> |
| 26 | | <a href=#point8.4.3> 8.4.3. How do I make it run under a different user account?</a><br> |
| | 18 | <a href=#point8>8. Testing</a><br> |
| | 19 | <a href=#point9>9. Platform-specific Notes</a><br> |
| | 20 | <a href=#point9.1> 9.1. Debian/Ubuntu</a><br> |
| | 21 | <a href=#point9.2> 9.2. CentOS 5.4</a><br> |
| | 22 | <a href=#point9.2.1> 9.2.1 Dependencies</a><br> |
| | 23 | <a href=#point9.3> 9.3. MacOS</a><br> |
| | 24 | <a href=#point9.4> 9.4. Windows</a><br> |
| | 25 | <a href=#point9.4.1> 9.4.1. What if that doesn't work?</a><br> |
| | 26 | <a href=#point9.4.2> 9.4.2. How do I make it run as a Windows service?</a><br> |
| | 27 | <a href=#point9.4.3> 9.4.3. How do I make it run under a different user account?</a><br> |
| 222 | | [=#point8] |
| | 223 | [=#point9] |
| | 224 | == Testing == |
| | 225 | |
| | 226 | Use {{{python setup.py test}}} to run the whole test suite. This will rebuild |
| | 227 | if necessary. |
| | 228 | |
| | 229 | There are a few other supported ways to run tests: |
| | 230 | * {{{bin/tahoe debug trial}}}. This will ''not'' rebuild (if a build was needed, |
| | 231 | some tests may fail). It accepts all of the same options as Twisted's {{{trial}}} |
| | 232 | script; use {{{bin/tahoe debug trial --help}}} to see help for these. |
| | 233 | * {{{python setup.py trial}}} does the same thing as {{{bin/tahoe debug trial}}}, |
| | 234 | although it doesn't support all of the {{{trial}}} options (and the test suite |
| | 235 | must be specified using {{{-s}}}). It's supported mainly for backward |
| | 236 | compatibility. |
| | 237 | * {{{make test}}} does the same thing as {{{python setup.py test}}}. |
| | 238 | * {{{make quicktest}}} does the same thing as {{{bin/tahoe debug trial}}}. |
| | 239 | |
| | 240 | Running {{{trial}}} directly is not supported because it will not necessarily |
| | 241 | put the correct libraries (the same ones that would be used by {{{bin/tahoe}}}) |
| | 242 | on Python's {{{sys.path}}}. |
| | 243 | |
| | 244 | To run a subset of the tests after making a source change that does not require |
| | 245 | a rebuild, {{{bin/tahoe debug trial <testsuite>}}} is the quickest option. |
| | 246 | |
| | 247 | |
| | 248 | [=#point9] |