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

Side by Side Diff: test/rules-dirname/gyptest-dirname.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) 2011 Google Inc. All rights reserved. 3 # Copyright (c) 2011 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 rules when using an explicit build target of 'all'. 8 Verifies simple rules when using an explicit build target of 'all'.
9 """ 9 """
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 expect = """\ 23 expect = """\
24 no dir here 24 no dir here
25 hi c 25 hi c
26 hello baz 26 hello baz
27 """ 27 """
28 if test.format == 'xcode': 28 if test.format == 'xcode':
29 chdir = 'relocate/src/subdir' 29 chdir = 'relocate/src/subdir'
30 else: 30 else:
31 chdir = 'relocate/src' 31 chdir = 'relocate/src'
32 test.run_built_executable('gencc_int_output', chdir=chdir, stdout=expect) 32 if test.format == 'android':
33 test.run_built_executable('gencc_int_output', chdir=chdir, stdout=expect,
34 subdir='subdir')
35 else:
36 test.run_built_executable('gencc_int_output', chdir=chdir, stdout=expect)
37
33 if test.format == 'msvs': 38 if test.format == 'msvs':
34 test.run_built_executable('gencc_int_output_external', chdir=chdir, 39 test.run_built_executable('gencc_int_output_external', chdir=chdir,
35 stdout=expect) 40 stdout=expect)
36 41
37 test.must_match('relocate/src/subdir/foo/bar/baz.dirname', 42 test.must_match('relocate/src/subdir/foo/bar/baz.dirname',
38 os.path.join('foo', 'bar')) 43 os.path.join('foo', 'bar'))
39 test.must_match('relocate/src/subdir/a/b/c.dirname', 44 test.must_match('relocate/src/subdir/a/b/c.dirname',
40 os.path.join('a', 'b')) 45 os.path.join('a', 'b'))
41 46
42 # FIXME the xcode and make generators incorrectly convert RULE_INPUT_PATH 47 # FIXME the xcode and make generators incorrectly convert RULE_INPUT_PATH
43 # to an absolute path, making the tests below fail! 48 # to an absolute path, making the tests below fail!
44 if test.format != 'xcode' and test.format != 'make': 49 if test.format != 'xcode' and test.format != 'make':
45 test.must_match('relocate/src/subdir/foo/bar/baz.path', 50 test.must_match('relocate/src/subdir/foo/bar/baz.path',
46 os.path.join('foo', 'bar', 'baz.printvars')) 51 os.path.join('foo', 'bar', 'baz.printvars'))
47 test.must_match('relocate/src/subdir/a/b/c.path', 52 test.must_match('relocate/src/subdir/a/b/c.path',
48 os.path.join('a', 'b', 'c.printvars')) 53 os.path.join('a', 'b', 'c.printvars'))
49 54
50 test.pass_test() 55 test.pass_test()
OLDNEW
« test/lib/TestGyp.py ('K') | « test/lib/TestGyp.py ('k') | test/rules/gyptest-all.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698