Chromium Code Reviews| OLD | NEW |
|---|---|
| (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() | |
| OLD | NEW |