blob: 9b0ed22b95659d45b1cedc14ef9cbfec02e9e2c7 [file] [log] [blame]
Christian Heimesc6d471d2013-12-05 07:45:36 +01001# Convenience test module to run all of the SSL-related tests in the
2# standard library.
3
4import sys
5import subprocess
6
7TESTS = ['test_asyncio', 'test_ftplib', 'test_hashlib', 'test_httplib',
Christian Heimesdb8f5c32013-12-05 07:53:38 +01008 'test_imaplib', 'test_nntplib', 'test_poplib', 'test_smtplib',
Christian Heimesc6d471d2013-12-05 07:45:36 +01009 'test_smtpnet', 'test_urllib2_localnet', 'test_venv']
10
11def run_regrtests(*extra_args):
12 args = [sys.executable, "-m", "test"]
13 if not extra_args:
14 args.append("-unetwork")
15 else:
16 args.extend(extra_args)
17 args.extend(TESTS)
18 result = subprocess.call(args)
19 sys.exit(result)
20
21if __name__ == '__main__':
22 run_regrtests(*sys.argv[1:])