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

Side by Side Diff: test/win/gyptest-cl_character_set.py

Issue 9443044: Beginnings of some msvs_... emulation (windows ninja) (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: comment fixes Created 8 years, 10 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
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 character set setting is extracted properly.
9 """
10
11 import TestGyp
12
13 import subprocess
14 import sys
15
16 if sys.platform == 'win32':
17 test = TestGyp.TestGyp(formats=['ninja'])
18
19 CHDIR = 'compiler_flags'
20 test.run_gyp('character-set.gyp', chdir=CHDIR)
21
22 ninja_file = test.built_file_path('obj/test_cs_notset.ninja', chdir=CHDIR)
23 test.must_not_contain(ninja_file, 'D_UNICODE')
24 test.must_not_contain(ninja_file, 'DUNICODE')
25 test.must_not_contain(ninja_file, 'D_MBCS')
26 test.must_not_contain(ninja_file, 'MBCS')
27 test.must_not_contain(ninja_file, 'UNICODE')
Nico 2012/02/29 19:44:18 For example, in this case, the source file could h
28
29 ninja_file = test.built_file_path('obj/test_cs_unicode.ninja', chdir=CHDIR)
30 test.must_contain(ninja_file, 'D_UNICODE')
31 test.must_contain(ninja_file, 'DUNICODE')
32
33 ninja_file = test.built_file_path('obj/test_cs_mbcs.ninja', chdir=CHDIR)
34 test.must_contain(ninja_file, 'D_MBCS')
35
36 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698