Sha256: 614f16d193decbda5f534e80e4c54ce9fcaec4032d5e36f21bbde0a4cb136756

Contents?: true

Size: 1.28 KB

Versions: 39

Compression:

Stored size: 1.28 KB

Contents

#!/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.

"""
Verify handling of build variants.

TODO:  Right now, only the SCons generator supports this, so the
test case is SCons-specific.  In particular, it relise on SCons'
ability to rebuild in response to changes on the command line.  It
may be simpler to just drop this feature if the other generators
can't be made to behave the same way.
"""

import TestGyp

test = TestGyp.TestGyp(formats=['scons'])

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

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

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

test.run_built_executable('variants',
                          chdir='relocate/src',
                          stdout="Hello, world!\n")

test.sleep()
test.build('variants.gyp', 'VARIANT1=1', chdir='relocate/src')

test.run_built_executable('variants',
                          chdir='relocate/src',
                          stdout="Hello from VARIANT1\n")

test.sleep()
test.build('variants.gyp', 'VARIANT2=1', chdir='relocate/src')

test.run_built_executable('variants',
                          chdir='relocate/src',
                          stdout="Hello from VARIANT2\n")

test.pass_test()

Version data entries

39 entries across 39 versions & 5 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.19 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.18 vendor/gyp/test/variants/gyptest-variants.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.17 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.16 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.15 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.14 vendor/gyp/test/variants/gyptest-variants.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.13 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.12 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.11 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.10 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.8 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.8.rc1 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.7 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.6 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.5 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.4 vendor/gyp/test/variants/gyptest-variants.py
libv8-3.16.14.3 vendor/gyp/test/variants/gyptest-variants.py