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

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

Issue 10749020: Adds support for the library_dirs key, which appears in the documentation but was never actually im… (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: library_dirs Created 7 years, 5 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
Property Changes:
Added: svn:keywords
+ Id
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
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
5 # found in the LICENSE file.
6
7 """
8 Verifies library_dirs (in link_settings) are properly found.
9 """
10
11 import TestGyp
12
13 test = TestGyp.TestGyp(formats=['!android'])
14
15 lib_dir = test.tempdir('secret_location')
16
17 test.run_gyp('test.gyp',
18 '-D', 'abs_path_to_secret_library_location={0}'.format(lib_dir),
19 chdir='subdir')
20
21 # Must build each target independently, since they are not in each others'
22 # 'dependencies' (test.ALL does NOT work here for some builders, and in any case
23 # would not ensure the correct ordering).
24 test.build('test.gyp', 'mylib', chdir='subdir')
25 test.build('test.gyp', 'libraries-search-path-test', chdir='subdir')
26
27 expect = """Hello world
28 """
29 test.run_built_executable(
30 'libraries-search-path-test', chdir='subdir', stdout=expect)
31
32 test.pass_test()
33 test.cleanup()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698