summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/variables/latelate/gyptest-latelate.py
blob: 2d77dfec5e9b8dd91ec70ea348ae1b1d04835b78 (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) 2012 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 that ^(latelate) style variables work.
"""

import TestGyp

test = TestGyp.TestGyp()

test.run_gyp('latelate.gyp', chdir='src')

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

test.build('latelate.gyp', test.ALL, chdir='relocate/src')

test.run_built_executable(
    'program', chdir='relocate/src', stdout='program.cc\n')


test.pass_test()