summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/win/gyptest-midl-rules.py
blob: 591a507320b0d874170550ef8a199ea19d9b828e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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.

"""
Handle default .idl build rules.
"""

import TestGyp

import sys

if sys.platform == 'win32':
  test = TestGyp.TestGyp(formats=['msvs', 'ninja'])

  CHDIR = 'idl-rules'
  test.run_gyp('basic-idl.gyp', chdir=CHDIR)
  for platform in ['Win32', 'x64']:
    test.set_configuration('Debug|%s' % platform)
    test.build('basic-idl.gyp', test.ALL, chdir=CHDIR)

    # Make sure ninja win_tool.py filters out noisy lines.
    if test.format == 'ninja' and 'Processing' in test.stdout():
      test.fail_test()

    test.pass_test()