http:///https:///index.php?title=Writing_Tests_summary&feed=atom&action=historyWriting Tests summary - Revision history2024-03-27T04:58:24ZRevision history for this page on the wikiMediaWiki 1.39.5https://wiki.samba.org/index.php?title=Writing_Tests_summary&diff=16908&oldid=prevAbartlet: summary page about writing tests2020-06-18T20:50:32Z<p>summary page about writing tests</p>
<p><b>New page</b></p><div><br />
Most changes to Samba should have a test to demonstrate the bug being fixed, or test the feature being added. Most tests are run using 'make test' from a Samba source tree. <br />
<br />
See [[Writing_Tests|writing and running Samba tests]] but in particular:<br />
* [[Writing Torture Tests]]: smbtorture in the ''source4/torture'' directory and provides direct C protocol tests.<br />
* [[Writing Python Tests]]: If the protocol under test is [[DCERPC]], then [[PIDL]] will have already auto-generated [[Python]] bindings. Likewise LDAP is easily accessed via [[LDB]].<br />
* [[Writing cmocka Tests]]: Idea for unit tests of C functions.<br />
* [[LDB]]: Tests for LDB are in <code>lib/ldb/tests</code> and are run from <code>make test</code> within <code>lib/ldb</code><br />
* [[Running_CTDB_tests|CTDB]]: Tests for CTDB are written as shell scripts under <code>ctdb/tests</code> and are run from <code>make test</code> within <code>ctdb</code></div>Abartlet