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

Side by Side Diff: test/mac/gyptest-xcode-gcc.py

Issue 10451028: Add support for GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO to xcode emulation. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: grrrr Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « pylib/gyp/xcode_emulation.py ('k') | test/mac/xcode-gcc/test.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
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
5 # found in the LICENSE file.
6
7 """
8 Verifies that xcode-style GCC_... settings are handled properly.
9 """
10
11 import TestGyp
12
13 import sys
14
15 def IgnoreOutput(string, expected_string):
16 return True
17
18 if sys.platform == 'darwin':
19 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
20
21 CHDIR = 'xcode-gcc'
22 test.run_gyp('test.gyp', chdir=CHDIR)
23
24 # List of targets that'll pass. It expects targets of the same name with
25 # '-fail' appended that'll fail to build.
26 targets = [
27 'warn_about_invalid_offsetof_macro',
28 'warn_about_missing_newline',
29 ]
30
31 for target in targets:
32 test.build('test.gyp', target, chdir=CHDIR)
33 test.built_file_must_exist(target, chdir=CHDIR)
34 fail_target = target + '-fail'
35 test.build('test.gyp', fail_target, chdir=CHDIR, status=None,
36 stderr=None, match=IgnoreOutput)
37 test.built_file_must_not_exist(fail_target, chdir=CHDIR)
38
39 test.pass_test()
OLDNEW
« no previous file with comments | « pylib/gyp/xcode_emulation.py ('k') | test/mac/xcode-gcc/test.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698