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

Side by Side Diff: test/actions-subdir/gyptest-action.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, 3 months 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) 2009 Google Inc. All rights reserved. 3 # Copyright (c) 2009 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 Test actions that output to PRODUCT_DIR. 8 Test actions that output to PRODUCT_DIR.
9 """ 9 """
10 10
11 import TestGyp 11 import TestGyp
12 12
13 # TODO fix this for xcode: http://code.google.com/p/gyp/issues/detail?id=88 13 # TODO fix this for xcode: http://code.google.com/p/gyp/issues/detail?id=88
14 test = TestGyp.TestGyp(formats=['!xcode']) 14 test = TestGyp.TestGyp(formats=['!xcode'])
15 15
16 test.run_gyp('none.gyp', chdir='src') 16 test.run_gyp('none.gyp',
17 '-G', 'xcode_ninja_target_pattern=^file$',
18 chdir='src')
17 19
18 test.build('none.gyp', test.ALL, chdir='src') 20 test.build('none.gyp', test.ALL, chdir='src')
19 21
20 file_content = 'Hello from make-file.py\n' 22 file_content = 'Hello from make-file.py\n'
21 subdir_file_content = 'Hello from make-subdir-file.py\n' 23 subdir_file_content = 'Hello from make-subdir-file.py\n'
22 24
23 test.built_file_must_match('file.out', file_content, chdir='src') 25 test.built_file_must_match('file.out', file_content, chdir='src')
24 test.built_file_must_match('subdir_file.out', subdir_file_content, chdir='src') 26 test.built_file_must_match('subdir_file.out', subdir_file_content, chdir='src')
25 27
26 test.pass_test() 28 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698