Index: test/win/gyptest-cl_rtti.py |
diff --git a/test/win/gyptest-cl_rtti.py b/test/win/gyptest-cl_rtti.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0c025f2416ffa2b9d32a40dfd34a4179c4ee3bb7 |
--- /dev/null |
+++ b/test/win/gyptest-cl_rtti.py |
@@ -0,0 +1,31 @@ |
+#!/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 RTTI setting is extracted properly. |
+""" |
+ |
+import TestGyp |
+ |
+import subprocess |
+import sys |
+ |
+if sys.platform == 'win32': |
+ test = TestGyp.TestGyp(formats=['ninja', 'msvs']) |
+ |
+ CHDIR = 'compiler_flags' |
+ test.run_gyp('rtti.gyp', chdir=CHDIR) |
+ test.build('rtti.gyp', test.ALL, chdir=CHDIR) |
+ |
+ if test.format == 'ninja': |
+ ninja_file = test.built_file_path('obj/test_rtti_off.ninja', chdir=CHDIR) |
+ test.must_contain(ninja_file, '/GR-') |
+ |
+ ninja_file = test.built_file_path('obj/test_rtti_on.ninja', chdir=CHDIR) |
+ test.must_contain(ninja_file, '/GR') |
+ test.must_not_contain(ninja_file, '/GR-') |
+ |
+ test.pass_test() |