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

Side by Side Diff: test/build-option/gyptest-build.py

Issue 10909158: Add support for building targets directly from gyp. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: fix nits Created 8 years, 3 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/generator/xcode.py ('k') | test/build-option/hello.c » ('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) 2009 Google Inc. All rights reserved. 3 # Copyright (c) 2009 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 test.run_gyp('hello.gyp') 16 test.run_gyp('hello.gyp', '--build=Default')
17
18 test.build('hello.gyp')
19 17
20 test.run_built_executable('hello', stdout="Hello, world!\n") 18 test.run_built_executable('hello', stdout="Hello, world!\n")
21 19
22 test.up_to_date('hello.gyp', test.DEFAULT) 20 test.up_to_date('hello.gyp', test.DEFAULT)
23 21
24 test.pass_test() 22 test.pass_test()
OLDNEW
« no previous file with comments | « pylib/gyp/generator/xcode.py ('k') | test/build-option/hello.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698