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

Side by Side Diff: test/win/gyptest-cl-analysis.py

Issue 11236042: ninja windows: add flag support for code analysis (aka PREfast) (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: copyright Created 8 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/win/compiler-flags/uninit.cc ('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')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
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
5 # found in the LICENSE file.
6
7 """
8 Make sure PREfast (code analysis) setting is extracted properly.
9 """
10
11 import TestGyp
12
13 import os
14 import sys
15
16 if (sys.platform == 'win32' and
17 int(os.environ.get('GYP_MSVS_VERSION', 0)) >= 2012):
18 test = TestGyp.TestGyp(formats=['msvs', 'ninja'])
19
20 CHDIR = 'compiler-flags'
21 test.run_gyp('analysis.gyp', chdir=CHDIR)
22
23 # Analysis enabled, should fail.
24 test.build('analysis.gyp', 'test_analysis_on', chdir=CHDIR, status=1)
25
26 # Analysis not enabled, or unspecified, should pass.
27 test.build('analysis.gyp', 'test_analysis_off', chdir=CHDIR)
28 test.build('analysis.gyp', 'test_analysis_unspec', chdir=CHDIR)
29
30 test.pass_test()
OLDNEW
« no previous file with comments | « test/win/compiler-flags/uninit.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698