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 """ | |
8 """ | |
9 | |
10 import TestGyp | 7 import TestGyp |
11 | 8 |
12 test = TestGyp.TestGyp() | 9 test = TestGyp.TestGyp() |
13 | 10 |
14 test.run_gyp('build/all.gyp', chdir='src') | 11 test.run_gyp('build/all.gyp', chdir='src') |
15 | 12 |
16 test.relocate('src', 'relocate/src') | 13 test.relocate('src', 'relocate/src') |
17 | 14 |
18 test.build('build/all.gyp', test.ALL, chdir='relocate/src') | 15 test.build('build/all.gyp', test.ALL, chdir='relocate/src') |
19 | 16 |
(...skipping 12 matching lines...) Expand all Loading... |
32 chdir=chdir, | 29 chdir=chdir, |
33 stdout="Hello from prog1.c\n") | 30 stdout="Hello from prog1.c\n") |
34 | 31 |
35 if test.format == 'xcode': | 32 if test.format == 'xcode': |
36 chdir = 'relocate/src/prog2' | 33 chdir = 'relocate/src/prog2' |
37 test.run_built_executable('program2', | 34 test.run_built_executable('program2', |
38 chdir=chdir, | 35 chdir=chdir, |
39 stdout="Hello from prog2.c\n") | 36 stdout="Hello from prog2.c\n") |
40 | 37 |
41 test.pass_test() | 38 test.pass_test() |
OLD | NEW |