OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 """ |
| 8 Make sure delay load setting is extracted properly. |
| 9 """ |
| 10 |
| 11 import TestGyp |
| 12 |
| 13 import subprocess |
| 14 import sys |
| 15 |
| 16 if sys.platform == 'win32': |
| 17 test = TestGyp.TestGyp(formats=['ninja']) |
| 18 |
| 19 CHDIR = 'linker_flags' |
| 20 test.run_gyp('delay-load-dlls.gyp', chdir=CHDIR) |
| 21 |
| 22 ninja_file = test.built_file_path('obj/test_dld_none.ninja', chdir=CHDIR) |
| 23 test.must_not_contain(ninja_file, '/DELAYLOAD') |
| 24 |
| 25 ninja_file = test.built_file_path('obj/test_dld_empty.ninja', chdir=CHDIR) |
| 26 test.must_not_contain(ninja_file, '/DELAYLOAD') |
| 27 |
| 28 ninja_file = test.built_file_path('obj/test_dld_one.ninja', chdir=CHDIR) |
| 29 test.must_contain(ninja_file, '/DELAYLOAD:dwmapi') |
| 30 |
| 31 ninja_file = test.built_file_path('obj/test_dld_few.ninja', chdir=CHDIR) |
| 32 test.must_contain(ninja_file, '/DELAYLOAD:dbghelp') |
| 33 test.must_contain(ninja_file, '/DELAYLOAD:shell32') |
| 34 test.must_contain(ninja_file, '/DELAYLOAD:uxtheme') |
| 35 |
| 36 test.pass_test() |
OLD | NEW |