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

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

Issue 421453003: Add TestGypXcodeNinja to run tests against the xcode-ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase onto origin/master Created 6 years 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
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 24 matching lines...) Expand all
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 'cmake': 0, # CMake picks the compiler driver based on transitive checks.
45 'xcode-ninja': [1, 65],
45 }[test.format] 46 }[test.format]
46 47
47 test.build('test.gyp', 'no_cpp_dep_on_cc_lib', chdir=CHDIR, 48 test.build('test.gyp', 'no_cpp_dep_on_cc_lib', chdir=CHDIR,
48 status=build_error_code) 49 status=build_error_code)
49 50
50 test.pass_test() 51 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698