Index: test/win/gyptest-link_additional_options.py |
diff --git a/test/win/gyptest-link_additional_options.py b/test/win/gyptest-link_additional_options.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bb353f478dcdedbecf918b221ea590699d495287 |
--- /dev/null |
+++ b/test/win/gyptest-link_additional_options.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 additional options are handled. |
+""" |
+ |
+import TestGyp |
+ |
+import subprocess |
+import sys |
+ |
+if sys.platform == 'win32': |
+ test = TestGyp.TestGyp(formats=['ninja']) |
+ |
+ CHDIR = 'linker_flags' |
+ test.run_gyp('additional-options.gyp', chdir=CHDIR) |
+ |
+ ninja_file = test.built_file_path('obj/test_additional_none.ninja', |
+ chdir=CHDIR) |
+ # Just generates OK |
+ |
+ ninja_file = test.built_file_path('obj/test_additional_few.ninja', |
+ chdir=CHDIR) |
+ test.must_contain(ninja_file, '/safeseh') |
+ test.must_contain(ninja_file, '/ignore:4199') |
+ |
+ test.pass_test() |