Need some hints on the Samba self-test stuff ...

Andreas Schneider asn at
Sun Apr 24 17:11:10 UTC 2016

On Saturday, 23 April 2016 07:56:20 CEST Richard Sharpe wrote:
> Hi folks,
> Primarily, I want to write tests for the net ads dns etc stuff ...
> 1. How do I ensure that, say, Samba is running as an AD DC with DNS
> support prior to the test running
> 2. How do I ensure that the client env is correct so that the subunit
> tests I write will run?

Start with:

Your selftest target will be "ad_member:local".

You can create 'testprogs/blackbox/' and look at 
'testprogs/blackbox/' what how to write a test.

To plan the test, edit: source4/selftest/

To have an interactive testenv:
make testenv SELFTEST_TESTENV="ad_member:local"


	-- andreas

Andreas Schneider                   GPG-ID: CC014E3D
Samba Team                             asn at

More information about the samba-technical mailing list