gyptest-debuginfo.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env python
  2. # Copyright (c) 2011 Google Inc. All rights reserved.
  3. # Use of this source code is governed by a BSD-style license that can be
  4. # found in the LICENSE file.
  5. """
  6. Tests things related to debug information generation.
  7. """
  8. import TestGyp
  9. import sys
  10. if sys.platform == 'darwin':
  11. test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
  12. test.run_gyp('test.gyp', chdir='debuginfo')
  13. test.build('test.gyp', test.ALL, chdir='debuginfo')
  14. test.built_file_must_exist('libnonbundle_shared_library.dylib.dSYM',
  15. chdir='debuginfo')
  16. test.built_file_must_exist('nonbundle_loadable_module.so.dSYM',
  17. chdir='debuginfo')
  18. test.built_file_must_exist('nonbundle_executable.dSYM',
  19. chdir='debuginfo')
  20. test.built_file_must_exist('bundle_shared_library.framework.dSYM',
  21. chdir='debuginfo')
  22. test.built_file_must_exist('bundle_loadable_module.bundle.dSYM',
  23. chdir='debuginfo')
  24. test.built_file_must_exist('My App.app.dSYM',
  25. chdir='debuginfo')
  26. test.pass_test()