| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # Copyright (c) 2011 Google Inc. All rights reserved. | 3 # Copyright (c) 2011 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 rules when using an explicit build target of 'all'. | 8 Verifies simple rules when using an explicit build target of 'all'. |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 from __future__ import print_function |
| 12 |
| 11 import TestGyp | 13 import TestGyp |
| 12 import os | 14 import os |
| 13 import sys | 15 import sys |
| 14 | 16 |
| 15 if sys.platform == 'win32': | 17 if sys.platform == 'win32': |
| 16 print "This test is currently disabled: https://crbug.com/483696." | 18 print("This test is currently disabled: https://crbug.com/483696.") |
| 17 sys.exit(0) | 19 sys.exit(0) |
| 18 | 20 |
| 19 | 21 |
| 20 test = TestGyp.TestGyp(formats=['make', 'ninja', 'xcode', 'msvs']) | 22 test = TestGyp.TestGyp(formats=['make', 'ninja', 'xcode', 'msvs']) |
| 21 | 23 |
| 22 test.run_gyp('actions.gyp', chdir='src') | 24 test.run_gyp('actions.gyp', chdir='src') |
| 23 | 25 |
| 24 test.relocate('src', 'relocate/src') | 26 test.relocate('src', 'relocate/src') |
| 25 | 27 |
| 26 test.build('actions.gyp', chdir='relocate/src') | 28 test.build('actions.gyp', chdir='relocate/src') |
| (...skipping 19 matching lines...) Expand all Loading... |
| 46 | 48 |
| 47 # FIXME the xcode and make generators incorrectly convert RULE_INPUT_PATH | 49 # FIXME the xcode and make generators incorrectly convert RULE_INPUT_PATH |
| 48 # to an absolute path, making the tests below fail! | 50 # to an absolute path, making the tests below fail! |
| 49 if test.format != 'xcode' and test.format != 'make': | 51 if test.format != 'xcode' and test.format != 'make': |
| 50 test.must_match('relocate/src/subdir/foo/bar/baz.path', | 52 test.must_match('relocate/src/subdir/foo/bar/baz.path', |
| 51 os.path.join('foo', 'bar', 'baz.printvars')) | 53 os.path.join('foo', 'bar', 'baz.printvars')) |
| 52 test.must_match('relocate/src/subdir/a/b/c.path', | 54 test.must_match('relocate/src/subdir/a/b/c.path', |
| 53 os.path.join('a', 'b', 'c.printvars')) | 55 os.path.join('a', 'b', 'c.printvars')) |
| 54 | 56 |
| 55 test.pass_test() | 57 test.pass_test() |
| OLD | NEW |