Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(781)

Side by Side Diff: test/mac/gyptest-bundle-resources.py

Issue 23681007: mac: Add a test for various bundle resource scenarious. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/mac/bundle-resources/test.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 #!/usr/bin/env python
3
4 # Copyright (c) 2013 Google Inc. All rights reserved.
5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file.
7
8 """
9 Verifies things related to bundle resources.
10 """
11
12 import TestGyp
13
14 import sys
15
16 if sys.platform == 'darwin':
17 # set |match| to ignore build stderr output.
18 test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
19
20 CHDIR = 'bundle-resources'
21 test.run_gyp('test.gyp', chdir=CHDIR)
22
23 test.build('test.gyp', test.ALL, chdir=CHDIR)
24
25 test.built_file_must_match('resource.app/Contents/Resources/secret.txt',
26 'abc\n', chdir=CHDIR)
27 test.built_file_must_match('source_rule.app/Contents/Resources/secret.txt',
28 'ABC\n', chdir=CHDIR)
29
30 # TODO(thakis): This currently fails with make.
31 if test.format != 'make':
32 test.built_file_must_match(
33 'resource_rule.app/Contents/Resources/secret.txt', 'ABC\n', chdir=CHDIR)
Mark Mentovai 2013/09/04 21:16:34 Whoops, that’s irrelevant now.
Nico 2013/09/04 21:20:46 Done.
34
35 test.pass_test()
OLDNEW
« no previous file with comments | « test/mac/bundle-resources/test.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698