gyptest-copy-dylib.py 596 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # Copyright (c) 2012 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. Verifies that dylibs can be copied into app bundles.
  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='copy-dylib')
  13. test.build('test.gyp', 'test_app', chdir='copy-dylib')
  14. test.built_file_must_exist(
  15. 'Test App.app/Contents/Resources/libmy_dylib.dylib', chdir='copy-dylib')
  16. test.pass_test()