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

Side by Side Diff: test/build-option/gyptest-build.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
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 simplest-possible build of a "Hello, world!" program 8 Verifies simplest-possible build of a "Hello, world!" program
9 using the default build target. 9 using the default build target.
10 """ 10 """
11 11
12 import TestGyp 12 import TestGyp
13 13
14 test = TestGyp.TestGyp(workdir='workarea_default') 14 test = TestGyp.TestGyp(workdir='workarea_default')
15 15
16 if test.format == 'android': 16 if test.format == 'android':
17 # This test currently fails on android. Investigate why, fix the issues 17 # This test currently fails on android. Investigate why, fix the issues
18 # responsible, and reenable this test on android. See bug: 18 # responsible, and reenable this test on android. See bug:
19 # https://code.google.com/p/gyp/issues/detail?id=436 19 # https://code.google.com/p/gyp/issues/detail?id=436
20 test.skip_test(message='Test fails on android. Fix and reenable.\n') 20 test.skip_test(message='Test fails on android. Fix and reenable.\n')
21 21
22 if test.format == 'xcode-ninja':
23 # The xcode-ninja generator doesn't support --build
24 # cf. https://code.google.com/p/gyp/issues/detail?id=453
25 test.skip_test()
26
22 test.run_gyp('hello.gyp', '--build=Default') 27 test.run_gyp('hello.gyp', '--build=Default')
23 28
24 test.run_built_executable('hello', stdout="Hello, world!\n") 29 test.run_built_executable('hello', stdout="Hello, world!\n")
25 30
26 test.up_to_date('hello.gyp', test.DEFAULT) 31 test.up_to_date('hello.gyp', test.DEFAULT)
27 32
28 test.pass_test() 33 test.pass_test()
OLDNEW
« no previous file with comments | « test/additional-targets/gyptest-additional.py ('k') | test/compiler-override/gyptest-compiler-env.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698