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

Andreas Schneider asn at samba.org
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:

https://sambaxp.org/archive_data/SambaXP2015-SLIDES/thu/track3/sambaxp2015-thu-track3-Andreas_Schneider-HowToUseTheSambaSelftestSuite.pdf

Your selftest target will be "ad_member:local".

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


To plan the test, edit: source4/selftest/tests.py


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


Cheers,


	-- andreas

-- 
Andreas Schneider                   GPG-ID: CC014E3D
Samba Team                             asn at samba.org
www.samba.org



More information about the samba-technical mailing list