OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 DEPS = [ | 5 DEPS = [ |
6 'v8', | 6 'v8', |
| 7 'platform', |
7 ] | 8 ] |
8 | 9 |
9 def GenSteps(api): | 10 def GenSteps(api): |
10 api.v8.set_config('v8', optional=True) | 11 api.v8.set_config('v8', optional=True) |
11 | 12 |
12 yield api.v8.checkout() | 13 yield api.v8.checkout() |
13 yield api.v8.runhooks() | 14 yield api.v8.runhooks() |
14 yield api.v8.compile() | 15 yield api.v8.compile() |
15 | 16 |
16 # Tests. | 17 # Tests. |
17 # TODO(machenbach): Implement the tests. | 18 # TODO(machenbach): Implement the tests. |
18 | 19 |
19 def GenTests(_api): | 20 def GenTests(api): |
20 for bits in [32, 64]: | 21 for bits in [32, 64]: |
21 for build_config in ['Release', 'Debug']: | 22 for build_config in ['Release', 'Debug']: |
22 yield '%s%s' % (build_config, bits), { | 23 yield ( |
23 'properties': { | 24 api.Test('%s%s' % (build_config, bits)) + |
24 'build_config': build_config, | 25 api.Properties(build_config=build_config, bits=bits) |
25 'bits': bits, | 26 ) |
26 }, | |
27 } | |
28 | 27 |
29 for build_config in ['Release', 'Debug']: | 28 for build_config in ['Release', 'Debug']: |
30 yield 'arm_%s' % (build_config), { | 29 yield ( |
31 'properties': { | 30 api.Test('arm_%s' % build_config) + |
32 'build_config': build_config, | 31 api.Properties(build_config=build_config, target_arch='arm') |
33 'target_arch': 'arm', | 32 ) |
34 }, | |
35 } | |
36 | 33 |
37 yield 'default_platform', { | 34 yield ( |
38 'mock': { | 35 api.Test('mips_target') + |
39 'platform': { | 36 api.Properties(build_config=build_config, target_arch='mips') |
40 'name': 'linux', | 37 ) |
41 'bits': 64, | |
42 } | |
43 }, | |
44 } | |
45 | 38 |
46 yield 'clobber', { | 39 yield api.Test('default_platform') + api.platform('linux', 64) |
47 'properties': { | |
48 'clobber': '', | |
49 }, | |
50 } | |
51 | 40 |
| 41 yield api.Test('clobber') + api.Properties(clobber='') |
OLD | NEW |