OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 Google Inc. All rights reserved. | 3 # Copyright (c) 2012 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 that actions can be + a source scanner can be used to implement, | 8 Verifies that actions can be + a source scanner can be used to implement, |
9 cross-compiles (for Native Client at this point). | 9 cross-compiles (for Native Client at this point). |
10 """ | 10 """ |
11 | 11 |
12 import TestGyp | 12 import TestGyp |
13 | 13 |
14 test = TestGyp.TestGyp() | 14 test = TestGyp.TestGyp() |
15 | 15 |
16 # TODO(bradnelson): fix scons. | |
17 if test.format == 'scons': | |
18 test.skip_test() | |
19 | |
20 test.run_gyp('cross.gyp', chdir='src') | 16 test.run_gyp('cross.gyp', chdir='src') |
21 | 17 |
22 test.relocate('src', 'relocate/src') | 18 test.relocate('src', 'relocate/src') |
23 | 19 |
24 test.build('cross.gyp', test.ALL, chdir='relocate/src') | 20 test.build('cross.gyp', test.ALL, chdir='relocate/src') |
25 | 21 |
26 expect = """\ | 22 expect = """\ |
27 From test1.cc | 23 From test1.cc |
28 From test2.c | 24 From test2.c |
29 From test3.cc | 25 From test3.cc |
30 From test4.c | 26 From test4.c |
31 """ | 27 """ |
32 test.run_built_executable('program', chdir='relocate/src', stdout=expect) | 28 test.run_built_executable('program', chdir='relocate/src', stdout=expect) |
33 | 29 |
34 | 30 |
35 test.pass_test() | 31 test.pass_test() |
OLD | NEW |