| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 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 |
| 5 # found in the LICENSE file. |
| 6 |
| 3 """ | 7 """ |
| 4 """ | 8 """ |
| 5 | 9 |
| 6 import TestGyp | 10 import TestGyp |
| 7 | 11 |
| 8 test = TestGyp.TestGyp() | 12 test = TestGyp.TestGyp() |
| 9 | 13 |
| 10 test.run_gyp('multiple.gyp', chdir='src') | 14 test.run_gyp('multiple.gyp', chdir='src') |
| 11 | 15 |
| 12 test.relocate('src', 'relocate/src') | 16 test.relocate('src', 'relocate/src') |
| 13 | 17 |
| 14 # TODO(sgk): remove stderr=None when the --generator-output= support | 18 # TODO(sgk): remove stderr=None when the --generator-output= support |
| 15 # gets rid of the scons warning | 19 # gets rid of the scons warning |
| 16 test.build('multiple.gyp', test.ALL, chdir='relocate/src', stderr=None) | 20 test.build('multiple.gyp', test.ALL, chdir='relocate/src', stderr=None) |
| 17 | 21 |
| 18 expect1 = """\ | 22 expect1 = """\ |
| 19 hello from prog1.c | 23 hello from prog1.c |
| 20 hello from common.c | 24 hello from common.c |
| 21 """ | 25 """ |
| 22 | 26 |
| 23 expect2 = """\ | 27 expect2 = """\ |
| 24 hello from prog2.c | 28 hello from prog2.c |
| 25 hello from common.c | 29 hello from common.c |
| 26 """ | 30 """ |
| 27 | 31 |
| 28 test.run_built_executable('prog1', stdout=expect1, chdir='relocate/src') | 32 test.run_built_executable('prog1', stdout=expect1, chdir='relocate/src') |
| 29 test.run_built_executable('prog2', stdout=expect2, chdir='relocate/src') | 33 test.run_built_executable('prog2', stdout=expect2, chdir='relocate/src') |
| 30 | 34 |
| 31 test.pass_test() | 35 test.pass_test() |
| OLD | NEW |