Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2012 Google Inc. All rights reserved. | 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """ | 7 """ |
| 8 Verifies that files generated by two-steps-removed actions are built before | 8 Verifies that files generated by two-steps-removed actions are built before |
| 9 dependent compile steps. | 9 dependent compile steps. |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 import os | 12 import os |
| 13 import sys | 13 import sys |
| 14 import TestGyp | 14 import TestGyp |
| 15 | 15 |
| 16 # This test is Ninja-specific in that: | 16 # This test is Ninja-specific in that: |
| 17 # - the bug only showed nondeterministically in parallel builds; | 17 # - the bug only showed nondeterministically in parallel builds; |
| 18 # - it relies on a ninja-specific output file path. | 18 # - it relies on a ninja-specific output file path. |
| 19 | 19 |
| 20 test = TestGyp.TestGyp(formats=['ninja']) | 20 test = TestGyp.TestGyp(formats=['ninja']) |
| 21 if test.format == 'xcode-ninja': | |
|
sdefresne
2014/09/02 15:13:06
Same here.
Tobias
2014/10/02 18:19:19
Done.
| |
| 22 test.skip_test() | |
| 23 | |
| 21 test.run_gyp('chained-dependency.gyp') | 24 test.run_gyp('chained-dependency.gyp') |
| 22 objext = '.obj' if sys.platform == 'win32' else '.o' | 25 objext = '.obj' if sys.platform == 'win32' else '.o' |
| 23 test.build('chained-dependency.gyp', | 26 test.build('chained-dependency.gyp', |
| 24 os.path.join('obj', 'chained.chained' + objext)) | 27 os.path.join('obj', 'chained.chained' + objext)) |
| 25 # The test passes if the .o file builds successfully. | 28 # The test passes if the .o file builds successfully. |
| 26 test.pass_test() | 29 test.pass_test() |
| OLD | NEW |