Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: test/errors/gyptest-errors.py

Issue 664253005: Simplify and optimize FindCycles (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/errors/file_cycle1.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 21 matching lines...) Expand all
32 stderr = ('gyp: rule bar exists in duplicate, target ' 32 stderr = ('gyp: rule bar exists in duplicate, target '
33 '.*duplicate_rule.gyp:foo#target\n') 33 '.*duplicate_rule.gyp:foo#target\n')
34 test.run_gyp('duplicate_rule.gyp', status=1, stderr=stderr, 34 test.run_gyp('duplicate_rule.gyp', status=1, stderr=stderr,
35 match=TestCmd.match_re) 35 match=TestCmd.match_re)
36 36
37 stderr = ("gyp: Key 'targets' repeated at level 1 with key path '' while " 37 stderr = ("gyp: Key 'targets' repeated at level 1 with key path '' while "
38 "reading .*duplicate_node.gyp.*") 38 "reading .*duplicate_node.gyp.*")
39 test.run_gyp('duplicate_node.gyp', '--check', status=1, stderr=stderr, 39 test.run_gyp('duplicate_node.gyp', '--check', status=1, stderr=stderr,
40 match=TestCmd.match_re_dotall) 40 match=TestCmd.match_re_dotall)
41 41
42 stderr = (".*target0.*target1.*target2.*target0.*")
43 test.run_gyp('dependency_cycle.gyp', status=1, stderr=stderr,
44 match=TestCmd.match_re_dotall)
45
46 stderr = (".*file_cycle0.*file_cycle1.*file_cycle0.*")
47 test.run_gyp('file_cycle0.gyp', status=1, stderr=stderr,
48 match=TestCmd.match_re_dotall)
49
42 stderr = 'gyp: Duplicate basenames in sources section, see list above\n' 50 stderr = 'gyp: Duplicate basenames in sources section, see list above\n'
43 test.run_gyp('duplicate_basenames.gyp', status=1, stderr=stderr) 51 test.run_gyp('duplicate_basenames.gyp', status=1, stderr=stderr)
44 52
45 # Check if '--no-duplicate-basename-check' works. 53 # Check if '--no-duplicate-basename-check' works.
46 if ((test.format == 'make' and sys.platform == 'darwin') or 54 if ((test.format == 'make' and sys.platform == 'darwin') or
47 (test.format == 'msvs' and 55 (test.format == 'msvs' and
48 int(os.environ.get('GYP_MSVS_VERSION', 2010)) < 2010)): 56 int(os.environ.get('GYP_MSVS_VERSION', 2010)) < 2010)):
49 stderr = 'gyp: Duplicate basenames in sources section, see list above\n' 57 stderr = 'gyp: Duplicate basenames in sources section, see list above\n'
50 test.run_gyp('duplicate_basenames.gyp', '--no-duplicate-basename-check', 58 test.run_gyp('duplicate_basenames.gyp', '--no-duplicate-basename-check',
51 status=1, stderr=stderr) 59 status=1, stderr=stderr)
52 else: 60 else:
53 test.run_gyp('duplicate_basenames.gyp', '--no-duplicate-basename-check') 61 test.run_gyp('duplicate_basenames.gyp', '--no-duplicate-basename-check')
54 62
55 stderr = ("gyp: Dependency '.*missing_dep.gyp:missing.gyp#target' not found " 63 stderr = ("gyp: Dependency '.*missing_dep.gyp:missing.gyp#target' not found "
56 "while trying to load target .*missing_dep.gyp:foo#target\n") 64 "while trying to load target .*missing_dep.gyp:foo#target\n")
57 test.run_gyp('missing_dep.gyp', status=1, stderr=stderr, 65 test.run_gyp('missing_dep.gyp', status=1, stderr=stderr,
58 match=TestCmd.match_re) 66 match=TestCmd.match_re)
59 67
60 test.pass_test() 68 test.pass_test()
OLDNEW
« no previous file with comments | « test/errors/file_cycle1.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698