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 simplest-possible build of a "Hello, world!" program | 8 Verifies simplest-possible build of a "Hello, world!" program |
5 using an explicit build target of 'hello'. | 9 using an explicit build target of 'hello'. |
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('hello.gyp') | 16 test.run_gyp('hello.gyp') |
13 | 17 |
14 test.build('hello.gyp', 'hello') | 18 test.build('hello.gyp', 'hello') |
15 | 19 |
16 test.run_built_executable('hello', stdout="Hello, world!\n") | 20 test.run_built_executable('hello', stdout="Hello, world!\n") |
17 | 21 |
18 test.up_to_date('hello.gyp', 'hello') | 22 test.up_to_date('hello.gyp', 'hello') |
19 | 23 |
20 test.pass_test() | 24 test.pass_test() |
OLD | NEW |