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 an explicit build target of 'all'. | 8 Verifies simple actions when using an explicit build target of 'all'. |
9 """ | 9 """ |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 test.built_file_must_not_exist('out.txt', chdir='relocate/src') | 33 test.built_file_must_not_exist('out.txt', chdir='relocate/src') |
34 test.built_file_must_not_exist('foolib1', | 34 test.built_file_must_not_exist('foolib1', |
35 type=test.SHARED_LIB, | 35 type=test.SHARED_LIB, |
36 chdir=chdir) | 36 chdir=chdir) |
37 | 37 |
38 # xcode-ninja doesn't generate separate workspaces for sub-gyps by design | 38 # xcode-ninja doesn't generate separate workspaces for sub-gyps by design |
39 if test.format == 'xcode-ninja': | 39 if test.format == 'xcode-ninja': |
40 test.pass_test() | 40 test.pass_test() |
41 | 41 |
42 # TODO(mmoss) Make consistent with msvs, with 'dir1' before 'out/Default'? | 42 # TODO(mmoss) Make consistent with msvs, with 'dir1' before 'out/Default'? |
43 if test.format in ('make', 'ninja', 'android', 'cmake'): | 43 if test.format in ('make', 'ninja', 'cmake'): |
44 chdir='relocate/src' | 44 chdir='relocate/src' |
45 else: | 45 else: |
46 chdir='relocate/src/dir1' | 46 chdir='relocate/src/dir1' |
47 | 47 |
48 # Build the action explicitly. | 48 # Build the action explicitly. |
49 test.build('actions.gyp', 'action1_target', chdir=chdir) | 49 test.build('actions.gyp', 'action1_target', chdir=chdir) |
50 | 50 |
51 # Check that things got run. | 51 # Check that things got run. |
52 file_content = 'Hello from emit.py\n' | 52 file_content = 'Hello from emit.py\n' |
53 test.built_file_must_exist('out.txt', chdir=chdir) | 53 test.built_file_must_exist('out.txt', chdir=chdir) |
54 | 54 |
55 # Build the shared library explicitly. | 55 # Build the shared library explicitly. |
56 test.build('actions.gyp', 'foolib1', chdir=chdir) | 56 test.build('actions.gyp', 'foolib1', chdir=chdir) |
57 | 57 |
58 test.built_file_must_exist('foolib1', | 58 test.built_file_must_exist('foolib1', |
59 type=test.SHARED_LIB, | 59 type=test.SHARED_LIB, |
60 chdir=chdir, | 60 chdir=chdir, |
61 subdir='dir1') | 61 subdir='dir1') |
62 | 62 |
63 test.pass_test() | 63 test.pass_test() |
OLD | NEW |