summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/subdirectory/gyptest-subdir2-deep.py
blob: 48548982f8c5d4d09d04f687627879298038f225 (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

# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""
Verifies building a project rooted several layers under src_dir works.
"""

import TestGyp

test = TestGyp.TestGyp()

test.run_gyp('prog3.gyp', chdir='src/subdir/subdir2')

test.relocate('src', 'relocate/src')

test.build('prog3.gyp', test.ALL, chdir='relocate/src/subdir/subdir2')

test.run_built_executable('prog3',
                          chdir='relocate/src/subdir/subdir2',
                          stdout="Hello from prog3.c\n")

test.pass_test()