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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pylib/gyp/xcode_emulation.py ('k') | test/mac/xcode-gcc/test.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mac/gyptest-xcode-gcc.py
===================================================================
--- test/mac/gyptest-xcode-gcc.py (revision 0)
+++ test/mac/gyptest-xcode-gcc.py (revision 0)
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2012 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Verifies that xcode-style GCC_... settings are handled properly.
+"""
+
+import TestGyp
+
+import sys
+
+def IgnoreOutput(string, expected_string):
+ return True
+
+if sys.platform == 'darwin':
+ test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
+
+ CHDIR = 'xcode-gcc'
+ test.run_gyp('test.gyp', chdir=CHDIR)
+
+ # List of targets that'll pass. It expects targets of the same name with
+ # '-fail' appended that'll fail to build.
+ targets = [
+ 'warn_about_invalid_offsetof_macro',
+ 'warn_about_missing_newline',
+ ]
+
+ for target in targets:
+ test.build('test.gyp', target, chdir=CHDIR)
+ test.built_file_must_exist(target, chdir=CHDIR)
+ fail_target = target + '-fail'
+ test.build('test.gyp', fail_target, chdir=CHDIR, status=None,
+ stderr=None, match=IgnoreOutput)
+ test.built_file_must_not_exist(fail_target, chdir=CHDIR)
+
+ test.pass_test()
Property changes on: test/mac/gyptest-xcode-gcc.py
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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