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 actions when using an explicit build target of 'all'.
13 test = TestGyp.TestGyp()
15 test.run_gyp('all.gyp', chdir='src')
16 test.relocate('src', 'relocate/src')
19 test.build('all.gyp', chdir='relocate/src')
21 if test.format=='xcode':
22 chdir = 'relocate/src/dir1'
24 chdir = 'relocate/src'
26 # Output is as expected.
27 file_content = 'Hello from emit.py\n'
28 test.built_file_must_match('out2.txt', file_content, chdir=chdir)
30 test.built_file_must_not_exist('out.txt', chdir='relocate/src')
31 test.built_file_must_not_exist('foolib1',
35 # TODO(mmoss) Make consistent with scons, with 'dir1' before 'out/Default'?
36 if test.format == 'make':
39 chdir='relocate/src/dir1'
41 # Build the action explicitly.
42 test.build('actions.gyp', 'action1_target', chdir=chdir)
44 # Check that things got run.
45 file_content = 'Hello from emit.py\n'
46 test.built_file_must_exist('out.txt', chdir=chdir)
48 # Build the shared library explicitly.
49 test.build('actions.gyp', 'foolib1', chdir=chdir)
51 test.built_file_must_exist('foolib1',