| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 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. |
| 6 |
| 3 """ | 7 """ |
| 4 Verify handling of build variants. | 8 Verify handling of build variants. |
| 5 | 9 |
| 6 TODO: Right now, only the SCons generator supports this, so the | 10 TODO: Right now, only the SCons generator supports this, so the |
| 7 test case is SCons-specific. In particular, it relise on SCons' | 11 test case is SCons-specific. In particular, it relise on SCons' |
| 8 ability to rebuild in response to changes on the command line. It | 12 ability to rebuild in response to changes on the command line. It |
| 9 may be simpler to just drop this feature if the other generators | 13 may be simpler to just drop this feature if the other generators |
| 10 can't be made to behave the same way. | 14 can't be made to behave the same way. |
| 11 """ | 15 """ |
| 12 | 16 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 32 stdout="Hello from VARIANT1\n") | 36 stdout="Hello from VARIANT1\n") |
| 33 | 37 |
| 34 test.sleep() | 38 test.sleep() |
| 35 test.build('variants.gyp', 'VARIANT2=1', chdir='relocate/src') | 39 test.build('variants.gyp', 'VARIANT2=1', chdir='relocate/src') |
| 36 | 40 |
| 37 test.run_built_executable('variants', | 41 test.run_built_executable('variants', |
| 38 chdir='relocate/src', | 42 chdir='relocate/src', |
| 39 stdout="Hello from VARIANT2\n") | 43 stdout="Hello from VARIANT2\n") |
| 40 | 44 |
| 41 test.pass_test() | 45 test.pass_test() |
| OLD | NEW |