| 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 """ | 8 """ |
| 5 | 9 |
| 6 import TestGyp | 10 import TestGyp |
| 7 | 11 |
| 8 test = TestGyp.TestGyp() | 12 test = TestGyp.TestGyp() |
| 9 | 13 |
| 10 test.run_gyp('build/all.gyp', chdir='src') | 14 test.run_gyp('build/all.gyp', chdir='src') |
| 11 | 15 |
| 12 test.build('build/all.gyp', test.ALL, chdir='src') | 16 test.build('build/all.gyp', test.ALL, chdir='src') |
| 13 | 17 |
| 14 chdir = 'src/build' | 18 chdir = 'src/build' |
| 15 | 19 |
| 16 if test.format == 'xcode': | 20 if test.format == 'xcode': |
| 17 chdir = 'src/prog1' | 21 chdir = 'src/prog1' |
| 18 test.run_built_executable('prog1', | 22 test.run_built_executable('prog1', |
| 19 chdir=chdir, | 23 chdir=chdir, |
| 20 stdout="Hello from prog1.c\n") | 24 stdout="Hello from prog1.c\n") |
| 21 | 25 |
| 22 if test.format == 'xcode': | 26 if test.format == 'xcode': |
| 23 chdir = 'src/prog2' | 27 chdir = 'src/prog2' |
| 24 test.run_built_executable('prog2', | 28 test.run_built_executable('prog2', |
| 25 chdir=chdir, | 29 chdir=chdir, |
| 26 stdout="Hello from prog2.c\n") | 30 stdout="Hello from prog2.c\n") |
| 27 | 31 |
| 28 test.pass_test() | 32 test.pass_test() |
| OLD | NEW |