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

Side by Side Diff: test/library_dirs/gyptest-library-dirs.py

Issue 421453003: Add TestGypXcodeNinja to run tests against the xcode-ninja generator (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase onto origin/master Created 6 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2013 Google Inc. All rights reserved. 3 # Copyright (c) 2013 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """ 7 """
8 Verifies library_dirs (in link_settings) are properly found. 8 Verifies library_dirs (in link_settings) are properly found.
9 """ 9 """
10 10
11 import sys 11 import sys
12 12
13 import TestGyp 13 import TestGyp
14 14
15 test = TestGyp.TestGyp(formats=['!android']) 15 test = TestGyp.TestGyp(formats=['!android'])
16 16
17 lib_dir = test.tempdir('secret_location') 17 lib_dir = test.tempdir('secret_location')
18 18
19 test.run_gyp('test.gyp', 19 test.run_gyp('test.gyp',
20 '-D', 'abs_path_to_secret_library_location={0}'.format(lib_dir), 20 '-D', 'abs_path_to_secret_library_location={0}'.format(lib_dir),
21 '-G', 'xcode_ninja_target_pattern=^.*$',
21 chdir='subdir') 22 chdir='subdir')
22 23
23 # Must build each target independently, since they are not in each others' 24 # Must build each target independently, since they are not in each others'
24 # 'dependencies' (test.ALL does NOT work here for some builders, and in any case 25 # 'dependencies' (test.ALL does NOT work here for some builders, and in any case
25 # would not ensure the correct ordering). 26 # would not ensure the correct ordering).
26 test.build('test.gyp', 'mylib', chdir='subdir') 27 test.build('test.gyp', 'mylib', chdir='subdir')
27 test.build('test.gyp', 'libraries-search-path-test', chdir='subdir') 28 test.build('test.gyp', 'libraries-search-path-test', chdir='subdir')
28 29
29 expect = """Hello world 30 expect = """Hello world
30 """ 31 """
(...skipping 10 matching lines...) Expand all
41 test.build('test-win.gyp', 42 test.build('test-win.gyp',
42 'libraries-search-path-test-lib-suffix', 43 'libraries-search-path-test-lib-suffix',
43 chdir='subdir') 44 chdir='subdir')
44 45
45 test.run_built_executable( 46 test.run_built_executable(
46 'libraries-search-path-test-lib-suffix', chdir='subdir', stdout=expect) 47 'libraries-search-path-test-lib-suffix', chdir='subdir', stdout=expect)
47 48
48 49
49 test.pass_test() 50 test.pass_test()
50 test.cleanup() 51 test.cleanup()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698