gyptest-watch.py 867 B

123456789101112131415161718192021222324252627282930313233343536
  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 watch extensions and apps are built correctly.
  7. """
  8. import TestGyp
  9. import TestMac
  10. import sys
  11. if sys.platform == 'darwin' and TestMac.Xcode.Version() >= "0620":
  12. test = TestGyp.TestGyp(formats=['ninja', 'xcode'])
  13. test.run_gyp('watch.gyp', chdir='watch')
  14. test.build(
  15. 'watch.gyp',
  16. 'WatchContainer',
  17. chdir='watch')
  18. # Test that the extension exists
  19. test.built_file_must_exist(
  20. 'WatchContainer.app/PlugIns/WatchKitExtension.appex',
  21. chdir='watch')
  22. # Test that the watch app exists
  23. test.built_file_must_exist(
  24. 'WatchContainer.app/PlugIns/WatchKitExtension.appex/WatchApp.app',
  25. chdir='watch')
  26. test.pass_test()