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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: test/win/gyptest-cl_character_set.py
diff --git a/test/win/gyptest-cl_character_set.py b/test/win/gyptest-cl_character_set.py
new file mode 100644
index 0000000000000000000000000000000000000000..bd5884fb34d8995d0829cf345a9a41d70b77b538
--- /dev/null
+++ b/test/win/gyptest-cl_character_set.py
@@ -0,0 +1,36 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2012 Google Inc. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""
+Make sure character set setting is extracted properly.
+"""
+
+import TestGyp
+
+import subprocess
+import sys
+
+if sys.platform == 'win32':
+ test = TestGyp.TestGyp(formats=['ninja'])
+
+ CHDIR = 'compiler_flags'
+ test.run_gyp('character-set.gyp', chdir=CHDIR)
+
+ ninja_file = test.built_file_path('obj/test_cs_notset.ninja', chdir=CHDIR)
+ test.must_not_contain(ninja_file, 'D_UNICODE')
+ test.must_not_contain(ninja_file, 'DUNICODE')
+ test.must_not_contain(ninja_file, 'D_MBCS')
+ test.must_not_contain(ninja_file, 'MBCS')
+ test.must_not_contain(ninja_file, 'UNICODE')
Nico 2012/02/29 19:44:18 For example, in this case, the source file could h
+
+ ninja_file = test.built_file_path('obj/test_cs_unicode.ninja', chdir=CHDIR)
+ test.must_contain(ninja_file, 'D_UNICODE')
+ test.must_contain(ninja_file, 'DUNICODE')
+
+ ninja_file = test.built_file_path('obj/test_cs_mbcs.ninja', chdir=CHDIR)
+ test.must_contain(ninja_file, 'D_MBCS')
+
+ test.pass_test()

Powered by Google App Engine
This is Rietveld 408576698