| 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 | |
| 23 test.run_gyp('library.gyp', | 17 test.run_gyp('library.gyp', |
| 24 '-Dlibrary=shared_library', | 18 '-Dlibrary=shared_library', |
| 25 '-Dmoveable_function=lib1', | 19 '-Dmoveable_function=lib1', |
| 26 chdir='src') | 20 chdir='src') |
| 27 | 21 |
| 28 test.relocate('src', 'relocate/src') | 22 test.relocate('src', 'relocate/src') |
| 29 | 23 |
| 30 test.build('library.gyp', test.ALL, chdir='relocate/src') | 24 test.build('library.gyp', test.ALL, chdir='relocate/src') |
| 31 | 25 |
| 32 expect = """\ | 26 expect = """\ |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 expect = """\ | 75 expect = """\ |
| 82 Hello again again from program.c | 76 Hello again again from program.c |
| 83 Hello from lib1.c | 77 Hello from lib1.c |
| 84 Hello from lib2.c | 78 Hello from lib2.c |
| 85 Hello from lib1_moveable.c | 79 Hello from lib1_moveable.c |
| 86 """ | 80 """ |
| 87 test.run_built_executable('program', chdir='relocate/src', stdout=expect) | 81 test.run_built_executable('program', chdir='relocate/src', stdout=expect) |
| 88 | 82 |
| 89 | 83 |
| 90 test.pass_test() | 84 test.pass_test() |
| OLD | NEW |