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

Side by Side Diff: test/actions/gyptest-default.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) 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 simple actions when using the default build target. 8 Verifies simple actions when using the default build target.
9 """ 9 """
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 expect = """\ 44 expect = """\
45 Hello from program.c 45 Hello from program.c
46 Hello from make-prog1.py 46 Hello from make-prog1.py
47 Hello from make-prog2.py 47 Hello from make-prog2.py
48 """ 48 """
49 49
50 if test.format == 'xcode': 50 if test.format == 'xcode':
51 chdir = 'relocate/src/subdir1' 51 chdir = 'relocate/src/subdir1'
52 else: 52 else:
53 chdir = 'relocate/src' 53 chdir = 'relocate/src'
54 test.run_built_executable('program', chdir=chdir, stdout=expect) 54
55 if test.format == 'android':
56 test.run_built_executable('program', chdir=chdir, stdout=expect,
57 subdir='subdir1')
58 else:
59 test.run_built_executable('program', chdir=chdir, stdout=expect)
55 60
56 61
57 test.must_match('relocate/src/subdir2/file.out', "Hello from make-file.py\n") 62 test.must_match('relocate/src/subdir2/file.out', "Hello from make-file.py\n")
58 63
59 64
60 expect = "Hello from generate_main.py\n" 65 expect = "Hello from generate_main.py\n"
61 66
62 if test.format == 'xcode': 67 if test.format == 'xcode':
63 chdir = 'relocate/src/subdir3' 68 chdir = 'relocate/src/subdir3'
64 else: 69 else:
65 chdir = 'relocate/src' 70 chdir = 'relocate/src'
66 test.run_built_executable('null_input', chdir=chdir, stdout=expect) 71
72 if test.format == 'android':
73 test.run_built_executable('null_input', chdir=chdir, stdout=expect,
74 subdir='subdir3')
75 else:
76 test.run_built_executable('null_input', chdir=chdir, stdout=expect)
67 77
68 78
69 test.pass_test() 79 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698