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

Side by Side Diff: test/subdirectory/gyptest-SYMROOT-all.py

Issue 321953005: [gyp][Android] Implement TestGypAndroid.run_built_executable. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 6 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
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 building a target and a subsidiary dependent target from a 8 Verifies building a target and a subsidiary dependent target from a
9 .gyp file in a subdirectory, without specifying an explicit output build 9 .gyp file in a subdirectory, without specifying an explicit output build
10 directory, and using the generated solution or project file at the top 10 directory, and using the generated solution or project file at the top
(...skipping 11 matching lines...) Expand all
22 test.run_gyp('prog1.gyp', '-Dset_symroot=1', '--depth=.', chdir='src') 22 test.run_gyp('prog1.gyp', '-Dset_symroot=1', '--depth=.', chdir='src')
23 23
24 test.relocate('src', 'relocate/src') 24 test.relocate('src', 'relocate/src')
25 25
26 # Suppress the test infrastructure's setting SYMROOT on the command line. 26 # Suppress the test infrastructure's setting SYMROOT on the command line.
27 test.build('prog1.gyp', test.ALL, SYMROOT=None, chdir='relocate/src') 27 test.build('prog1.gyp', test.ALL, SYMROOT=None, chdir='relocate/src')
28 28
29 test.run_built_executable('prog1', 29 test.run_built_executable('prog1',
30 stdout="Hello from prog1.c\n", 30 stdout="Hello from prog1.c\n",
31 chdir='relocate/src') 31 chdir='relocate/src')
32 test.run_built_executable('prog2', 32
33 stdout="Hello from prog2.c\n", 33 if test.format == 'android':
34 chdir='relocate/src') 34 test.run_built_executable('prog2', stdout="Hello from prog2.c\n",
35 chdir='relocate/src', subdir='subdir')
36 else:
37 test.run_built_executable('prog2', stdout="Hello from prog2.c\n",
38 chdir='relocate/src')
35 39
36 test.pass_test() 40 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698