summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/gyptest-type-envvars.py
blob: a5203c5f1e2050961dac9913a744c1ee9cf0bb3a (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
#!/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.

"""
Test that MACH_O_TYPE etc are set correctly.
"""

import TestGyp

import sys

if sys.platform == 'darwin':
  test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])

  test.run_gyp('test.gyp',
               '-G', 'xcode_ninja_target_pattern=^(?!nonbundle_none).*$',
               chdir='type_envvars')

  test.build('test.gyp', test.ALL, chdir='type_envvars')

  # The actual test is done by postbuild scripts during |test.build()|.

  test.pass_test()