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

Side by Side Diff: test/library/gyptest-static.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
« no previous file with comments | « test/library/gyptest-shared.py ('k') | no next file » | 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 simple build of a "Hello, world!" program with static libraries, 8 Verifies simple build of a "Hello, world!" program with static libraries,
9 including verifying that libraries are rebuilt correctly when functions 9 including verifying that libraries are rebuilt correctly when functions
10 move between libraries. 10 move between libraries.
11 """ 11 """
12 12
13 import TestGyp 13 import TestGyp
14 14
15 test = TestGyp.TestGyp() 15 test = TestGyp.TestGyp()
16 16
17 if test.format == 'android':
18 # This test currently fails on android. Investigate why, fix the issues
19 # responsible, and reenable this test on android. See bug:
20 # https://code.google.com/p/gyp/issues/detail?id=436
21 test.skip_test(message='Test fails on android. Fix and reenable.\n')
22
17 test.run_gyp('library.gyp', 23 test.run_gyp('library.gyp',
18 '-Dlibrary=static_library', 24 '-Dlibrary=static_library',
19 '-Dmoveable_function=lib1', 25 '-Dmoveable_function=lib1',
20 chdir='src') 26 chdir='src')
21 27
22 test.relocate('src', 'relocate/src') 28 test.relocate('src', 'relocate/src')
23 29
24 test.build('library.gyp', test.ALL, chdir='relocate/src') 30 test.build('library.gyp', test.ALL, chdir='relocate/src')
25 31
26 expect = """\ 32 expect = """\
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 expect = """\ 81 expect = """\
76 Hello again again from program.c 82 Hello again again from program.c
77 Hello from lib1.c 83 Hello from lib1.c
78 Hello from lib2.c 84 Hello from lib2.c
79 Hello from lib1_moveable.c 85 Hello from lib1_moveable.c
80 """ 86 """
81 test.run_built_executable('program', chdir='relocate/src', stdout=expect) 87 test.run_built_executable('program', chdir='relocate/src', stdout=expect)
82 88
83 89
84 test.pass_test() 90 test.pass_test()
OLDNEW
« no previous file with comments | « test/library/gyptest-shared.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698