blob: 9f1556e6f9f3c3127268716e99f29db145eca84e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/env python
"""
Verifies building a subsidiary dependent target from a .gyp file in a
subdirectory, without specifying an explicit output build directory,
and using the subdirectory's solution or project file as the entry point.
"""
import TestGyp
test = TestGyp.TestGyp()
test.run_gyp('prog1.gyp', chdir='src')
test.relocate('src', 'relocate/src')
test.build('prog2.gyp', chdir='relocate/src/subdir')
test.must_not_exist('relocate/src/prog1'+test._exe)
test.run_built_executable('prog2',
chdir='relocate/src/subdir',
stdout="Hello from prog2.c\n")
test.pass_test()
|