diff options
| author | Andrew Tridgell <tridge@samba.org> | 2011-09-05 16:45:28 +1000 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2011-09-13 15:38:35 +1000 |
| commit | b8c6e36b09c72bf77077f853b4aac910c04a57ed (patch) | |
| tree | a88d49f6123be29fef903f354b6328a89be046e2 /source4/scripting/python/samba | |
| parent | 4ff99264cbc4ae39c3160a8eeba3ee27be899746 (diff) | |
s4-subdomain: use a password length of 128
windows seems to use a fixed size for this password. It is possible
that windows servers can only handle one size, given we have observed
some strange behaviour from the windows kdc when we setup trusts
Pair-Programmed-With: Andrew Bartlett <ab#!/usr/bin/python2
"""
Run IPA unit tests under multiple versions of Python (if present).
"""
import sys
import optparse
import os
from os import path
from subprocess import call
versions = ('2.4', '2.5', '2.6', '2.7')
python = '/usr/bin/python'
nose = '/usr/bin/nosetests'
ran = []
fail = []
cmd = [
nose,
'-v',
'--with-doctest',
'--doctest-tests',
'--exclude=plugins',
]
cmd += sys.argv[1:]
# This must be set so ipalib.api gets initialized property for tests:
os.environ['IPA_UNIT_TEST_MODE'] = 'cli_test'
# Add in-tree client binaries to PATH
os.environ['PATH'] = './ipa-client:' + os.environ['PATH']
if not path.isfile(nose):
print 'ERROR: need %r' % nose
sys.exit(100)
for v in versions:
pver = python + v
if not path.isfile(pver):
continue
command = [pver] + cmd
print ' '.join(cmd)
if 0 != call(cmd):
fail.append(pver)
ran.append(pver)
print '=' * 70
for pver in ran:
if pver in fail:
print 'FAILED under %r' % pver
else:
print 'passed under %r' % pver
print ''
if fail:
print '** FAIL **'
sys.exit(1)
else:
print '** pass **'
sys.exit(0)
