gyptest-missing-cfbundlesignature.py 942 B

1234567891011121314151617181920212223242526272829
  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 an Info.plist with CFBundleSignature works.
  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='missing-cfbundlesignature')
  13. test.build('test.gyp', test.ALL, chdir='missing-cfbundlesignature')
  14. test.built_file_must_match('mytarget.app/Contents/PkgInfo', 'APPL????',
  15. chdir='missing-cfbundlesignature')
  16. test.built_file_must_match('myothertarget.app/Contents/PkgInfo', 'APPL????',
  17. chdir='missing-cfbundlesignature')
  18. test.built_file_must_match('thirdtarget.app/Contents/PkgInfo', 'APPL????',
  19. chdir='missing-cfbundlesignature')
  20. test.pass_test()