| Index: test/win/gyptest-link_library_adjust.py
|
| diff --git a/test/win/gyptest-link_library_adjust.py b/test/win/gyptest-link_library_adjust.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ae0809404e9cde1919caa72e121519dc6e9cd622
|
| --- /dev/null
|
| +++ b/test/win/gyptest-link_library_adjust.py
|
| @@ -0,0 +1,28 @@
|
| +#!/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 link_settings containing -lblah.lib is remapped to just blah.lib.
|
| +"""
|
| +
|
| +import TestGyp
|
| +
|
| +import subprocess
|
| +import sys
|
| +
|
| +if sys.platform == 'win32':
|
| + test = TestGyp.TestGyp(formats=['ninja'])
|
| +
|
| + CHDIR = 'library_adjust'
|
| + test.run_gyp('library-adjust.gyp', chdir=CHDIR)
|
| +
|
| + ninja_file = test.built_file_path('obj/test_adjust.ninja', chdir=CHDIR)
|
| + test.must_contain(ninja_file, 'winmm.lib')
|
| + test.must_not_contain(ninja_file, '-lwinmm.lib')
|
| + test.must_contain(ninja_file, 'ws2_32.lib')
|
| + test.must_not_contain(ninja_file, '-lws2_32.lib')
|
| +
|
| + test.pass_test()
|
|
|