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

Unified Diff: test/configurations/x64/gyptest-x86.py

Issue 10698023: Get ninja working for nacl. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/configurations/x64/configurations.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/configurations/x64/gyptest-x86.py
===================================================================
--- test/configurations/x64/gyptest-x86.py (revision 1421)
+++ test/configurations/x64/gyptest-x86.py (working copy)
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-# Copyright (c) 2009 Google Inc. All rights reserved.
+# 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.
@@ -10,20 +10,22 @@
import TestGyp
-test = TestGyp.TestGyp(formats=['msvs'])
+import sys
+formats = ['msvs']
+if sys.platform == 'win32':
+ formats += ['ninja']
+test = TestGyp.TestGyp(formats=formats)
+
test.run_gyp('configurations.gyp')
+test.set_configuration('Debug|Win32')
+test.build('configurations.gyp', test.ALL)
-for platform in ['Win32', 'x64']:
- test.set_configuration('Debug|%s' % platform)
- test.build('configurations.gyp', rebuild=True)
- try:
- test.run_built_executable('configurations',
- stdout=('Running %s\n' % platform))
- except WindowsError, e:
- # Assume the exe is 64-bit if it can't load on 32-bit systems.
- if platform == 'x64' and (e.errno == 193 or '[Error 193]' in str(e)):
- continue
- raise
+for machine, suffix in [('14C machine (x86)', ''),
+ ('8664 machine (x64)', '64')]:
+ output = test.run_dumpbin(
+ '/headers', test.built_file_path('configurations%s.exe' % suffix))
+ if machine not in output:
+ test.fail_test()
test.pass_test()
« no previous file with comments | « test/configurations/x64/configurations.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698