| #!/usr/bin/env python |
| |
| # Copyright (c) 2011 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=['make', 'xcode']) |
| |
| test.run_gyp('test.gyp', 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() |