| Index: test/win/gyptest-cl_function_level_linking.py
|
| diff --git a/test/win/gyptest-cl_function_level_linking.py b/test/win/gyptest-cl_function_level_linking.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..680a8d1fbb8ccad4a8cb47060abd5f6b6a519880
|
| --- /dev/null
|
| +++ b/test/win/gyptest-cl_function_level_linking.py
|
| @@ -0,0 +1,29 @@
|
| +#!/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 function-level linking setting is extracted properly.
|
| +"""
|
| +
|
| +import TestGyp
|
| +
|
| +import subprocess
|
| +import sys
|
| +
|
| +if sys.platform == 'win32':
|
| + test = TestGyp.TestGyp(formats=['ninja'])
|
| +
|
| + CHDIR = 'compiler_flags'
|
| + test.run_gyp('function-level-linking.gyp', chdir=CHDIR)
|
| +
|
| + ninja_file = test.built_file_path('obj/test_fll_off.ninja', chdir=CHDIR)
|
| + test.must_contain(ninja_file, 'cflags = /Gy-')
|
| +
|
| + ninja_file = test.built_file_path('obj/test_fll_on.ninja', chdir=CHDIR)
|
| + test.must_contain(ninja_file, 'cflags = /Gy')
|
| + test.must_not_contain(ninja_file, '/Gy-')
|
| +
|
| + test.pass_test()
|
|
|