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