Index: test/win/gyptest-link_fixed_base.py |
diff --git a/test/win/gyptest-link_fixed_base.py b/test/win/gyptest-link_fixed_base.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6e19ec4dc9e625460f4a9885b582935648512277 |
--- /dev/null |
+++ b/test/win/gyptest-link_fixed_base.py |
@@ -0,0 +1,35 @@ |
+#!/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 subsystem setting is extracted properly. |
+""" |
+ |
+import TestGyp |
+ |
+import subprocess |
+import sys |
+ |
+if sys.platform == 'win32': |
+ test = TestGyp.TestGyp(formats=['ninja']) |
+ |
+ CHDIR = 'linker_flags' |
+ test.run_gyp('fixed-base.gyp', chdir=CHDIR) |
+ |
+ ninja_file = test.built_file_path('obj/test_fb_default.ninja', |
+ chdir=CHDIR) |
+ test.must_not_contain(ninja_file, '/FIXED') |
+ |
+ ninja_file = test.built_file_path('obj/test_fb_no.ninja', |
+ chdir=CHDIR) |
+ test.must_contain(ninja_file, '/FIXED:NO') |
+ |
+ ninja_file = test.built_file_path('obj/test_fb_yes.ninja', |
+ chdir=CHDIR) |
+ test.must_contain(ninja_file, '/FIXED') |
+ test.must_not_contain(ninja_file, '/FIXED:NO') |
+ |
+ test.pass_test() |