diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/mac/gyptest-debuginfo.py')
-rwxr-xr-x | media/webrtc/trunk/tools/gyp/test/mac/gyptest-debuginfo.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/mac/gyptest-debuginfo.py b/media/webrtc/trunk/tools/gyp/test/mac/gyptest-debuginfo.py new file mode 100755 index 000000000..a0e9438e2 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/gyptest-debuginfo.py @@ -0,0 +1,36 @@ +#!/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. + +""" +Tests things related to debug information generation. +""" + +import TestGyp + +import sys + +if sys.platform == 'darwin': + test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) + + test.run_gyp('test.gyp', chdir='debuginfo') + + test.build('test.gyp', test.ALL, chdir='debuginfo') + + test.built_file_must_exist('libnonbundle_shared_library.dylib.dSYM', + chdir='debuginfo') + test.built_file_must_exist('nonbundle_loadable_module.so.dSYM', + chdir='debuginfo') + test.built_file_must_exist('nonbundle_executable.dSYM', + chdir='debuginfo') + + test.built_file_must_exist('bundle_shared_library.framework.dSYM', + chdir='debuginfo') + test.built_file_must_exist('bundle_loadable_module.bundle.dSYM', + chdir='debuginfo') + test.built_file_must_exist('My App.app.dSYM', + chdir='debuginfo') + + test.pass_test() |