| Index: test/win/gyptest-cl_runtime_checks.py
|
| diff --git a/test/win/gyptest-cl_runtime_checks.py b/test/win/gyptest-cl_runtime_checks.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8d01898f48b2e581a5d239c2a8feb33f02a6cfca
|
| --- /dev/null
|
| +++ b/test/win/gyptest-cl_runtime_checks.py
|
| @@ -0,0 +1,34 @@
|
| +#!/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 RTC 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('runtime-checks.gyp', chdir=CHDIR)
|
| +
|
| + ninja_file = test.built_file_path('obj/test_brc_none.ninja', chdir=CHDIR)
|
| + test.must_not_contain(ninja_file, '/RTC')
|
| +
|
| + ninja_file = test.built_file_path('obj/test_brc_s.ninja', chdir=CHDIR)
|
| + test.must_contain(ninja_file, '/RTCs')
|
| +
|
| + ninja_file = test.built_file_path('obj/test_brc_u.ninja', chdir=CHDIR)
|
| + test.must_contain(ninja_file, '/RTCu')
|
| +
|
| + ninja_file = test.built_file_path('obj/test_brc_1.ninja', chdir=CHDIR)
|
| + test.must_contain(ninja_file, '/RTC1')
|
| +
|
| + test.pass_test()
|
|
|