File: gyptest-copy.py

package info (click to toggle)
gyp 0.1~svn1395-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 5,036 kB
  • sloc: python: 19,883; ansic: 914; cpp: 433; sh: 140; makefile: 49; objc: 22; asm: 18
file content (26 lines) | stat: -rwxr-xr-x 640 bytes parent folder | download | duplicates (73)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python

# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

import TestGyp

test = TestGyp.TestGyp()

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

test.build('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()