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 simple actions when using the default build target. | 8 Verifies simple actions when using the default build target. |
9 """ | 9 """ |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 expect = """\ | 44 expect = """\ |
45 Hello from program.c | 45 Hello from program.c |
46 Hello from make-prog1.py | 46 Hello from make-prog1.py |
47 Hello from make-prog2.py | 47 Hello from make-prog2.py |
48 """ | 48 """ |
49 | 49 |
50 if test.format == 'xcode': | 50 if test.format == 'xcode': |
51 chdir = 'relocate/src/subdir1' | 51 chdir = 'relocate/src/subdir1' |
52 else: | 52 else: |
53 chdir = 'relocate/src' | 53 chdir = 'relocate/src' |
54 test.run_built_executable('program', chdir=chdir, stdout=expect) | 54 |
| 55 if test.format == 'android': |
| 56 test.run_built_executable('program', chdir=chdir, stdout=expect, |
| 57 subdir='subdir1') |
| 58 else: |
| 59 test.run_built_executable('program', chdir=chdir, stdout=expect) |
55 | 60 |
56 | 61 |
57 test.must_match('relocate/src/subdir2/file.out', "Hello from make-file.py\n") | 62 test.must_match('relocate/src/subdir2/file.out', "Hello from make-file.py\n") |
58 | 63 |
59 | 64 |
60 expect = "Hello from generate_main.py\n" | 65 expect = "Hello from generate_main.py\n" |
61 | 66 |
62 if test.format == 'xcode': | 67 if test.format == 'xcode': |
63 chdir = 'relocate/src/subdir3' | 68 chdir = 'relocate/src/subdir3' |
64 else: | 69 else: |
65 chdir = 'relocate/src' | 70 chdir = 'relocate/src' |
66 test.run_built_executable('null_input', chdir=chdir, stdout=expect) | 71 |
| 72 if test.format == 'android': |
| 73 test.run_built_executable('null_input', chdir=chdir, stdout=expect, |
| 74 subdir='subdir3') |
| 75 else: |
| 76 test.run_built_executable('null_input', chdir=chdir, stdout=expect) |
67 | 77 |
68 | 78 |
69 test.pass_test() | 79 test.pass_test() |
OLD | NEW |