| Index: test/win/gyptest-link_library_directories.py
|
| diff --git a/test/win/gyptest-link_library_directories.py b/test/win/gyptest-link_library_directories.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..24ccc20f7e9d0bf059c07795d6fe2e044ec38f18
|
| --- /dev/null
|
| +++ b/test/win/gyptest-link_library_directories.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 libpath is extracted properly.
|
| +"""
|
| +
|
| +import TestGyp
|
| +
|
| +import subprocess
|
| +import sys
|
| +
|
| +if sys.platform == 'win32':
|
| + test = TestGyp.TestGyp(formats=['ninja'])
|
| +
|
| + CHDIR = 'linker_flags'
|
| + test.run_gyp('library-directories.gyp', chdir=CHDIR)
|
| +
|
| + ninja_file = test.built_file_path('obj/test_libdirs_none.ninja',
|
| + chdir=CHDIR)
|
| + test.must_not_contain(ninja_file, '/LIBPATH:')
|
| +
|
| + ninja_file = test.built_file_path('obj/test_libdirs_empty.ninja',
|
| + chdir=CHDIR)
|
| + test.must_not_contain(ninja_file, '/LIBPATH:')
|
| +
|
| + ninja_file = test.built_file_path('obj/test_libdirs_few.ninja',
|
| + chdir=CHDIR)
|
| + test.must_contain(ninja_file, '/LIBPATH:./third_party/directxsdk')
|
| + test.must_contain(ninja_file, '/LIBPATH:./third_party/platformsdk_win7')
|
| +
|
| + test.pass_test()
|
|
|