OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2009 Google Inc. All rights reserved. | 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 | 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 file copies using the build tool default. | 8 Verifies file copies using the build tool default. |
9 """ | 9 """ |
10 | 10 |
11 import TestGyp | 11 import TestGyp |
12 | 12 |
13 test = TestGyp.TestGyp() | 13 test = TestGyp.TestGyp() |
14 | 14 |
15 test.run_gyp('copies.gyp', | 15 test.run_gyp('copies.gyp', |
16 '-G', 'xcode_ninja_target_pattern=^(?!copies_null)', | 16 '-G', 'xcode_ninja_target_pattern=^(?!copies_null)', |
17 chdir='src') | 17 chdir='src') |
18 | 18 |
19 test.relocate('src', 'relocate/src') | 19 test.relocate('src', 'relocate/src') |
20 | 20 |
21 test.build('copies.gyp', chdir='relocate/src') | 21 test.build('copies.gyp', chdir='relocate/src') |
22 | 22 |
23 test.must_match(['relocate', 'src', 'copies-out', 'file1'], 'file1 contents\n') | 23 test.must_match(['relocate', 'src', 'copies-out', 'file1'], 'file1 contents\n') |
24 | 24 |
25 test.built_file_must_match('copies-out/framework/file1', | |
Mark Mentovai
2015/10/01 14:25:25
I wouldn’t expect this test to work on non-Mac. Ma
tonyworks
2015/10/01 14:37:26
How would you recommend I proceed? Any recommendat
| |
26 'file1 contents\n', | |
27 chdir='relocate/src') | |
25 test.built_file_must_match('copies-out/file2', | 28 test.built_file_must_match('copies-out/file2', |
26 'file2 contents\n', | 29 'file2 contents\n', |
27 chdir='relocate/src') | 30 chdir='relocate/src') |
28 | |
29 test.built_file_must_match('copies-out/directory/file3', | 31 test.built_file_must_match('copies-out/directory/file3', |
30 'file3 contents\n', | 32 'file3 contents\n', |
31 chdir='relocate/src') | 33 chdir='relocate/src') |
32 test.built_file_must_match('copies-out/directory/file4', | 34 test.built_file_must_match('copies-out/directory/file4', |
33 'file4 contents\n', | 35 'file4 contents\n', |
34 chdir='relocate/src') | 36 chdir='relocate/src') |
35 test.built_file_must_match('copies-out/directory/subdir/file5', | 37 test.built_file_must_match('copies-out/directory/subdir/file5', |
36 'file5 contents\n', | 38 'file5 contents\n', |
37 chdir='relocate/src') | 39 chdir='relocate/src') |
38 test.built_file_must_match('copies-out/subdir/file6', | 40 test.built_file_must_match('copies-out/subdir/file6', |
39 'file6 contents\n', | 41 'file6 contents\n', |
40 chdir='relocate/src') | 42 chdir='relocate/src') |
41 | 43 |
42 test.pass_test() | 44 test.pass_test() |
OLD | NEW |