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

Side by Side Diff: test/mac/gyptest-app-error.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
« no previous file with comments | « test/mac/gyptest-action-envvars.py ('k') | test/mac/gyptest-archs.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 invalid strings files cause the build to fail. 8 Verifies that invalid strings files cause the build to fail.
9 """ 9 """
10 10
(...skipping 16 matching lines...) Expand all
27 saw_expected_error[0] = True 27 saw_expected_error[0] = True
28 return True 28 return True
29 return False 29 return False
30 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'], match=match) 30 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'], match=match)
31 31
32 test.run_gyp('test-error.gyp', chdir='app-bundle') 32 test.run_gyp('test-error.gyp', chdir='app-bundle')
33 33
34 test.build('test-error.gyp', test.ALL, chdir='app-bundle') 34 test.build('test-error.gyp', test.ALL, chdir='app-bundle')
35 35
36 # Ninja pipes stderr of subprocesses to stdout. 36 # Ninja pipes stderr of subprocesses to stdout.
37 if test.format == 'ninja' and expected_error in test.stdout(): 37 if test.format in ['ninja', 'xcode-ninja'] \
38 and expected_error in test.stdout():
38 saw_expected_error[0] = True 39 saw_expected_error[0] = True
39 40
40 if saw_expected_error[0]: 41 if saw_expected_error[0]:
41 test.pass_test() 42 test.pass_test()
42 else: 43 else:
43 test.fail_test() 44 test.fail_test()
OLDNEW
« no previous file with comments | « test/mac/gyptest-action-envvars.py ('k') | test/mac/gyptest-archs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698