diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/mac/gyptest-type-envvars.py')
-rwxr-xr-x | media/webrtc/trunk/tools/gyp/test/mac/gyptest-type-envvars.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/mac/gyptest-type-envvars.py b/media/webrtc/trunk/tools/gyp/test/mac/gyptest-type-envvars.py new file mode 100755 index 000000000..a5203c5f1 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/gyptest-type-envvars.py @@ -0,0 +1,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() |