Chromium Code Reviews| 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() |