media/webrtc/trunk/tools/gyp/test/multiple-targets/gyptest-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 """
    10 import TestGyp
    12 test = TestGyp.TestGyp()
    14 test.run_gyp('multiple.gyp', chdir='src')
    16 test.relocate('src', 'relocate/src')
    18 # TODO(sgk):  remove stderr=None when the --generator-output= support
    19 # gets rid of the scons warning
    20 test.build('multiple.gyp', test.ALL, chdir='relocate/src', stderr=None)
    22 expect1 = """\
    23 hello from prog1.c
    24 hello from common.c
    25 """
    27 expect2 = """\
    28 hello from prog2.c
    29 hello from common.c
    30 """
    32 test.run_built_executable('prog1', stdout=expect1, chdir='relocate/src')
    33 test.run_built_executable('prog2', stdout=expect2, chdir='relocate/src')
    35 test.pass_test()

mercurial