1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 def GeneratedTestCertificate(name):
9 if not CONFIG['COMPILE_ENVIRONMENT']:
11 GeneratedFile(name, script='/security/manager/ssl/tests/unit/pycert.py',
12 inputs=['%s.certspec' % name])
13 # Turn RELATIVEDIR into list entry: like
14 # 'security/manager/ssl/tests/unit/bad_certs' ->
15 # TEST_HARNESS_FILES.xpcshell.security.manager.ssl.tests.unit.bad_certs.
16 files = TEST_HARNESS_FILES.xpcshell
17 for part in RELATIVEDIR.split('/'):
19 files += ['!%s' % name]
22 def GeneratedTestKey(name):
23 if not CONFIG['COMPILE_ENVIRONMENT']:
25 GeneratedFile(name, script='/security/manager/ssl/tests/unit/pykey.py',
26 inputs=['%s.keyspec' % name])
27 # Turn RELATIVEDIR into list entry: like
28 # 'security/manager/ssl/tests/unit/bad_certs' ->
29 # TEST_HARNESS_FILES.xpcshell.security.manager.ssl.tests.unit.bad_certs.
30 files = TEST_HARNESS_FILES.xpcshell
31 for part in RELATIVEDIR.split('/'):
33 files += ['!%s' % name]