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

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
OLDNEW
(Empty)
1
Mark Mentovai 2013/09/04 21:16:34 Blank line.
Nico 2013/09/04 21:20:46 Done.
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 ninja and mac, fix.
31 #test.built_file_must_match('resource_rule.app/Contents/Resources/secret.txt',
32 #'ABC\n', chdir=CHDIR)
Mark Mentovai 2013/09/04 21:16:34 Weird place to put the #, I almost missed it there
Nico 2013/09/04 21:20:46 Done.
33
34 test.pass_test()
OLDNEW
« test/mac/bundle-resources/change.sh ('K') | « test/mac/bundle-resources/test.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698