media/webrtc/trunk/tools/gyp/test/subdirectory/gyptest-SYMROOT-all.py

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rwxr-xr-x

Ignore runtime configuration files generated during quality assurance.

     1 #!/usr/bin/env python
     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.
     7 """
     8 Verifies building a target and a subsidiary dependent target from a
     9 .gyp file in a subdirectory, without specifying an explicit output build
    10 directory, and using the generated solution or project file at the top
    11 of the tree as the entry point.
    13 The configuration sets the Xcode SYMROOT variable and uses --depth=
    14 to make Xcode behave like the other build tools--that is, put all
    15 built targets in a single output build directory at the top of the tree.
    16 """
    18 import TestGyp
    20 test = TestGyp.TestGyp()
    22 test.run_gyp('prog1.gyp', '-Dset_symroot=1', '--depth=.', chdir='src')
    24 test.relocate('src', 'relocate/src')
    26 # Suppress the test infrastructure's setting SYMROOT on the command line.
    27 test.build('prog1.gyp', test.ALL, SYMROOT=None, chdir='relocate/src')
    29 test.run_built_executable('prog1',
    30                           stdout="Hello from prog1.c\n",
    31                           chdir='relocate/src')
    32 test.run_built_executable('prog2',
    33                           stdout="Hello from prog2.c\n",
    34                           chdir='relocate/src')
    36 test.pass_test()

mercurial