gyptest-extension.py 704 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # Copyright (c) 2014 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 ios app extensions are built correctly.
  7. """
  8. import TestGyp
  9. import TestMac
  10. import sys
  11. if sys.platform == 'darwin' and TestMac.Xcode.Version()>="0600":
  12. test = TestGyp.TestGyp(formats=['ninja', 'xcode'])
  13. test.run_gyp('extension.gyp', chdir='extension')
  14. test.build('extension.gyp', 'ExtensionContainer', chdir='extension')
  15. # Test that the extension is .appex
  16. test.built_file_must_exist(
  17. 'ExtensionContainer.app/PlugIns/ActionExtension.appex',
  18. chdir='extension')
  19. test.pass_test()