Index: test/win/gyptest-link_delay_load_dlls.py |
diff --git a/test/win/gyptest-link_delay_load_dlls.py b/test/win/gyptest-link_delay_load_dlls.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ecffa57ad9d6f48169e8eee1dcdce18bfe1b7f17 |
--- /dev/null |
+++ b/test/win/gyptest-link_delay_load_dlls.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 delay load 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('delay-load-dlls.gyp', chdir=CHDIR) |
+ |
+ ninja_file = test.built_file_path('obj/test_dld_none.ninja', chdir=CHDIR) |
+ test.must_not_contain(ninja_file, '/DELAYLOAD') |
+ |
+ ninja_file = test.built_file_path('obj/test_dld_empty.ninja', chdir=CHDIR) |
+ test.must_not_contain(ninja_file, '/DELAYLOAD') |
+ |
+ ninja_file = test.built_file_path('obj/test_dld_one.ninja', chdir=CHDIR) |
+ test.must_contain(ninja_file, '/DELAYLOAD:dwmapi') |
+ |
+ ninja_file = test.built_file_path('obj/test_dld_few.ninja', chdir=CHDIR) |
+ test.must_contain(ninja_file, '/DELAYLOAD:dbghelp') |
+ test.must_contain(ninja_file, '/DELAYLOAD:shell32') |
+ test.must_contain(ninja_file, '/DELAYLOAD:uxtheme') |
+ |
+ test.pass_test() |