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

Side by Side Diff: test/no-cpp/gyptest-no-cpp.py

Issue 12314014: CMake generator. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Address comments. Created 7 years, 1 month 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/lib/TestGyp.py ('k') | test/prune_targets/gyptest-prune-targets.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 Checks that C-only targets aren't linked against libstdc++. 8 Checks that C-only targets aren't linked against libstdc++.
9 """ 9 """
10 10
(...skipping 23 matching lines...) Expand all
34 assert not proc.returncode 34 assert not proc.returncode
35 return 'libstdc++' in output or 'libc++' in output 35 return 'libstdc++' in output or 'libc++' in output
36 36
37 if LinksLibStdCpp('no_cpp'): 37 if LinksLibStdCpp('no_cpp'):
38 test.fail_test() 38 test.fail_test()
39 39
40 build_error_code = { 40 build_error_code = {
41 'xcode': [1, 65], # 1 for xcode 3, 65 for xcode 4 (see `man sysexits`) 41 'xcode': [1, 65], # 1 for xcode 3, 65 for xcode 4 (see `man sysexits`)
42 'make': 2, 42 'make': 2,
43 'ninja': 1, 43 'ninja': 1,
44 'cmake': 0, # CMake picks the compiler driver based on transitive checks.
44 }[test.format] 45 }[test.format]
45 46
46 test.build('test.gyp', 'no_cpp_dep_on_cc_lib', chdir=CHDIR, 47 test.build('test.gyp', 'no_cpp_dep_on_cc_lib', chdir=CHDIR,
47 status=build_error_code) 48 status=build_error_code)
48 49
49 test.pass_test() 50 test.pass_test()
OLDNEW
« no previous file with comments | « test/lib/TestGyp.py ('k') | test/prune_targets/gyptest-prune-targets.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698