initial import
[vuplus_webkit] / Source / ThirdParty / gyp / test / subdirectory / gyptest-subdir-default.py
1 #!/usr/bin/env python
2
3 # Copyright (c) 2009 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 building a subsidiary dependent target from a .gyp file in a
9 subdirectory, without specifying an explicit output build directory,
10 and using the subdirectory's solution or project file as the entry point.
11 """
12
13 import TestGyp
14 import errno
15
16 test = TestGyp.TestGyp()
17
18 test.run_gyp('prog1.gyp', chdir='src')
19
20 test.relocate('src', 'relocate/src')
21
22 chdir = 'relocate/src/subdir'
23
24 test.build('prog2.gyp', chdir=chdir)
25
26 test.built_file_must_not_exist('prog1', type=test.EXECUTABLE, chdir=chdir)
27
28 test.run_built_executable('prog2',
29                           chdir=chdir,
30                           stdout="Hello from prog2.c\n")
31
32 test.pass_test()