| 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 Verifies that a scons build picks up tools modules specified | 8 Verifies that a scons build picks up tools modules specified |
| 5 via 'scons_tools' in the 'scons_settings' dictionary. | 9 via 'scons_tools' in the 'scons_settings' dictionary. |
| 6 """ | 10 """ |
| 7 | 11 |
| 8 import TestGyp | 12 import TestGyp |
| 9 | 13 |
| 10 test = TestGyp.TestGyp() | 14 test = TestGyp.TestGyp() |
| 11 | 15 |
| 12 test.run_gyp('tools.gyp') | 16 test.run_gyp('tools.gyp') |
| 13 | 17 |
| 14 test.build('tools.gyp', test.ALL) | 18 test.build('tools.gyp', test.ALL) |
| 15 | 19 |
| 16 if test.format == 'scons': | 20 if test.format == 'scons': |
| 17 expect = "Hello, world!\n" | 21 expect = "Hello, world!\n" |
| 18 else: | 22 else: |
| 19 expect = "" | 23 expect = "" |
| 20 test.run_built_executable('tools', stdout=expect) | 24 test.run_built_executable('tools', stdout=expect) |
| 21 | 25 |
| 22 test.pass_test() | 26 test.pass_test() |
| OLD | NEW |