OLD | NEW |
---|---|
(Empty) | |
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 """ | |
8 Verifies that ios watch extensions and apps are built correctly. | |
9 """ | |
10 | |
11 import TestGyp | |
12 import TestMac | |
13 | |
14 import sys | |
15 if sys.platform == 'darwin' and TestMac.Xcode.Version()>="0620": | |
justincohen
2014/11/26 20:12:04
nit space >=
| |
16 test = TestGyp.TestGyp(formats=['xcode']) | |
justincohen
2014/11/26 20:12:04
Does this not work on ninja too?
| |
17 | |
18 test.run_gyp('watch.gyp', chdir='watch') | |
19 | |
20 test.build('watch.gyp', 'WatchContainer', chdir='watch') | |
21 | |
22 test.set_configuration('Default-iphonesimulator') | |
justincohen
2014/11/26 20:12:04
Just simulator?
| |
23 | |
24 # Test that the extension exists | |
25 test.built_file_must_exist( | |
26 'WatchContainer.app/PlugIns/WatchKitExtension.appex', | |
27 chdir='watch') | |
28 | |
29 # Test that the watch app exists | |
30 test.built_file_must_exist( | |
31 'WatchContainer.app/PlugIns/WatchKitExtension.appex/WatchApp.app', | |
32 chdir='watch') | |
33 | |
34 test.pass_test() | |
35 | |
OLD | NEW |