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.
8
Verifies simple rules when using an explicit build target of 'all'.
13
test = TestGyp.TestGyp()
15
test.run_gyp('actions.gyp', chdir='src')
17
test.relocate('src', 'relocate/src')
19
test.build('actions.gyp', chdir='relocate/src')
23
Hello from function1.in
24
Hello from function2.in
27
if test.format == 'xcode':
28
chdir = 'relocate/src/subdir1'
30
chdir = 'relocate/src'
31
test.run_built_executable('program', chdir=chdir, stdout=expect)
35
Hello from function3.in
38
if test.format == 'xcode':
39
chdir = 'relocate/src/subdir3'
41
chdir = 'relocate/src'
42
test.run_built_executable('program2', chdir=chdir, stdout=expect)
44
test.must_match('relocate/src/subdir2/file1.out', "Hello from file1.in\n")
45
test.must_match('relocate/src/subdir2/file2.out', "Hello from file2.in\n")