summaryrefslogtreecommitdiff
path: root/test/dependency-copy/gyptest-copy.py
blob: bba28d6224cd850cd92a6a56cfdbff3d31eff593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

"""
Verifies dependencies do the copy step.
"""

import TestGyp

test = TestGyp.TestGyp()

test.run_gyp('copies.gyp', chdir='src')

test.build_target('copies.gyp', 'proj2', chdir='src')

test.run_built_executable('proj1',
                          chdir='src',
                          stdout="Hello from file1.c\n")
test.run_built_executable('proj2',
                          chdir='src',
                          stdout="Hello from file2.c\n")

test.pass_test()