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 Tests that a loadable_module target is built correctly. | 8 Tests that a loadable_module target is built correctly. |
9 """ | 9 """ |
10 | 10 |
| 11 from __future__ import print_function |
| 12 |
11 import TestGyp | 13 import TestGyp |
12 | 14 |
13 import os | 15 import os |
14 import struct | 16 import struct |
15 import sys | 17 import sys |
16 | 18 |
17 if sys.platform == 'darwin': | 19 if sys.platform == 'darwin': |
18 print "This test is currently disabled: https://crbug.com/483696." | 20 print("This test is currently disabled: https://crbug.com/483696.") |
19 sys.exit(0) | 21 sys.exit(0) |
20 | 22 |
21 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) | 23 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) |
22 | 24 |
23 CHDIR = 'loadable-module' | 25 CHDIR = 'loadable-module' |
24 test.run_gyp('test.gyp', chdir=CHDIR) | 26 test.run_gyp('test.gyp', chdir=CHDIR) |
25 | 27 |
26 test.build('test.gyp', test.ALL, chdir=CHDIR) | 28 test.build('test.gyp', test.ALL, chdir=CHDIR) |
27 | 29 |
28 # Binary. | 30 # Binary. |
(...skipping 14 matching lines...) Expand all Loading... |
43 <string>test_loadable_module</string> | 45 <string>test_loadable_module</string> |
44 """) | 46 """) |
45 | 47 |
46 # PkgInfo. | 48 # PkgInfo. |
47 test.built_file_must_not_exist( | 49 test.built_file_must_not_exist( |
48 'test_loadable_module.plugin/Contents/PkgInfo', chdir=CHDIR) | 50 'test_loadable_module.plugin/Contents/PkgInfo', chdir=CHDIR) |
49 test.built_file_must_not_exist( | 51 test.built_file_must_not_exist( |
50 'test_loadable_module.plugin/Contents/Resources', chdir=CHDIR) | 52 'test_loadable_module.plugin/Contents/Resources', chdir=CHDIR) |
51 | 53 |
52 test.pass_test() | 54 test.pass_test() |
OLD | NEW |