Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: test/ninja/chained-dependency/gyptest-chained-dependency.py

Issue 421453003: Add TestGypXcodeNinja to run tests against the xcode-ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase onto origin/master Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 # xcode-ninja doesn't support building single object files by design.
22 if test.format == 'xcode-ninja':
23 test.skip_test()
24
21 test.run_gyp('chained-dependency.gyp') 25 test.run_gyp('chained-dependency.gyp')
22 objext = '.obj' if sys.platform == 'win32' else '.o' 26 objext = '.obj' if sys.platform == 'win32' else '.o'
23 test.build('chained-dependency.gyp', 27 test.build('chained-dependency.gyp',
24 os.path.join('obj', 'chained.chained' + objext)) 28 os.path.join('obj', 'chained.chained' + objext))
25 # The test passes if the .o file builds successfully. 29 # The test passes if the .o file builds successfully.
26 test.pass_test() 30 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698