Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 #!/usr/bin/env python
3 # Copyright (c) 2012 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.
7 """
8 Build a .gyp that depends on 2 gyp files with the same name.
9 """
11 import TestGyp
13 test = TestGyp.TestGyp()
15 test.run_gyp('all.gyp', chdir='src')
17 test.relocate('src', 'relocate/src')
19 test.build('all.gyp', chdir='relocate/src')
21 expect1 = """\
22 Hello from main1.cc
23 """
25 expect2 = """\
26 Hello from main2.cc
27 """
29 if test.format == 'xcode':
30 chdir1 = 'relocate/src/subdir1'
31 chdir2 = 'relocate/src/subdir2'
32 else:
33 chdir1 = chdir2 = 'relocate/src'
35 test.run_built_executable('program1', chdir=chdir1, stdout=expect1)
36 test.run_built_executable('program2', chdir=chdir2, stdout=expect2)
38 test.pass_test()