blob: f88dcb94b2dbeefea3a76033817e1d6927d914bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/env python
# Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that app bundles are rebuilt correctly.
"""
import TestGyp
import os
import sys
if sys.platform == 'darwin':
test = TestGyp.TestGyp(formats=['make', 'xcode'])
test.run_gyp('test.gyp', chdir='app-bundle')
test.build('test.gyp', test.ALL, chdir='app-bundle')
# Touch a source file, rebuild, and check that the app target is up-to-date.
os.utime('app-bundle/TestApp/main.m', None)
test.build('test.gyp', test.ALL, chdir='app-bundle')
test.up_to_date('test.gyp', test.ALL, chdir='app-bundle')
test.pass_test()
|