OLD | NEW |
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 shared libraries, | 8 Verifies simple build of a "Hello, world!" program with shared 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=shared_library', | 24 '-Dlibrary=shared_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 Loading... |
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() |
OLD | NEW |