OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 3 """ |
| 4 Verifies simple build of a "Hello, world!" program with loadable modules. The |
| 5 default for all platforms should be to output the loadable modules to the same |
| 6 path as the executable. |
| 7 """ |
| 8 |
| 9 import TestGyp |
| 10 |
| 11 test = TestGyp.TestGyp() |
| 12 |
| 13 test.run_gyp('module.gyp', chdir='src') |
| 14 |
| 15 test.build_all('module.gyp', chdir='src') |
| 16 |
| 17 expect = """\ |
| 18 Hello from program.c |
| 19 Hello from lib1.c |
| 20 Hello from lib2.c |
| 21 """ |
| 22 test.run_built_executable('program', chdir='src', stdout=expect) |
| 23 |
| 24 test.pass_test() |
OLD | NEW |