| 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 Test that two targets with the same name generates an error. | 8 Test that two targets with the same name generates an error. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 match=TestCmd.match_re_dotall) | 40 match=TestCmd.match_re_dotall) |
| 41 | 41 |
| 42 stderr = (".*target0.*target1.*target2.*target0.*") | 42 stderr = (".*target0.*target1.*target2.*target0.*") |
| 43 test.run_gyp('dependency_cycle.gyp', status=1, stderr=stderr, | 43 test.run_gyp('dependency_cycle.gyp', status=1, stderr=stderr, |
| 44 match=TestCmd.match_re_dotall) | 44 match=TestCmd.match_re_dotall) |
| 45 | 45 |
| 46 stderr = (".*file_cycle0.*file_cycle1.*file_cycle0.*") | 46 stderr = (".*file_cycle0.*file_cycle1.*file_cycle0.*") |
| 47 test.run_gyp('file_cycle0.gyp', status=1, stderr=stderr, | 47 test.run_gyp('file_cycle0.gyp', status=1, stderr=stderr, |
| 48 match=TestCmd.match_re_dotall) | 48 match=TestCmd.match_re_dotall) |
| 49 | 49 |
| 50 stderr = 'gyp: Duplicate basenames in sources section, see list above\n' |
| 51 test.run_gyp('duplicate_basenames.gyp', status=1, stderr=stderr) |
| 52 |
| 53 # Check if '--no-duplicate-basename-check' works. |
| 54 if ((test.format == 'make' and sys.platform == 'darwin') or |
| 55 (test.format == 'msvs' and |
| 56 int(os.environ.get('GYP_MSVS_VERSION', 2010)) < 2010)): |
| 57 stderr = 'gyp: Duplicate basenames in sources section, see list above\n' |
| 58 test.run_gyp('duplicate_basenames.gyp', '--no-duplicate-basename-check', |
| 59 status=1, stderr=stderr) |
| 60 else: |
| 61 test.run_gyp('duplicate_basenames.gyp', '--no-duplicate-basename-check') |
| 62 |
| 50 stderr = ("gyp: Dependency '.*missing_dep.gyp:missing.gyp#target' not found " | 63 stderr = ("gyp: Dependency '.*missing_dep.gyp:missing.gyp#target' not found " |
| 51 "while trying to load target .*missing_dep.gyp:foo#target\n") | 64 "while trying to load target .*missing_dep.gyp:foo#target\n") |
| 52 test.run_gyp('missing_dep.gyp', status=1, stderr=stderr, | 65 test.run_gyp('missing_dep.gyp', status=1, stderr=stderr, |
| 53 match=TestCmd.match_re) | 66 match=TestCmd.match_re) |
| 54 | 67 |
| 55 test.pass_test() | 68 test.pass_test() |
| OLD | NEW |