• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2
3# Copyright (c) 2014 Google Inc. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7"""
8Verifies that ios watch extensions and apps are built correctly.
9"""
10
11import TestGyp
12import TestMac
13
14import sys
15
16if sys.platform == 'darwin':
17  print "This test is currently disabled: https://crbug.com/483696."
18  sys.exit(0)
19
20
21if sys.platform == 'darwin' and TestMac.Xcode.Version() >= "0620":
22  test = TestGyp.TestGyp(formats=['ninja', 'xcode'])
23
24  test.run_gyp('watch.gyp', chdir='watch')
25
26  test.build(
27      'watch.gyp',
28      'WatchContainer',
29      chdir='watch')
30
31  # Test that the extension exists
32  test.built_file_must_exist(
33      'WatchContainer.app/PlugIns/WatchKitExtension.appex',
34      chdir='watch')
35
36  # Test that the watch app exists
37  test.built_file_must_exist(
38      'WatchContainer.app/PlugIns/WatchKitExtension.appex/WatchApp.app',
39      chdir='watch')
40
41  test.pass_test()
42
43