Bug 1667008 [wpt PR 25754] - [css-flex] Change some test expectations for image flex...
[gecko.git] / build / test_templates.mozbuild
blob0f2c5d9cfa64afbf631a0222e32a832268386ad2
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/.
7 @template
8 def GeneratedTestCertificate(name):
9     if not CONFIG['COMPILE_ENVIRONMENT']:
10         return
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('/'):
18         files = files[part]
19     files += ['!%s' % name]
21 @template
22 def GeneratedTestKey(name):
23     if not CONFIG['COMPILE_ENVIRONMENT']:
24         return
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('/'):
32         files = files[part]
33     files += ['!%s' % name]