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

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

Issue 1151963003: Revert "Stop checking for duplicate basenames" (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: . Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « test/errors/duplicate_basenames.gyp ('k') | test/same-source-file-name/gyptest-shared.py » ('j') | 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 29 matching lines...) Expand all
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()
OLDNEW
« no previous file with comments | « test/errors/duplicate_basenames.gyp ('k') | test/same-source-file-name/gyptest-shared.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698