initial import
[vuplus_webkit] / Source / ThirdParty / gyp / test / actions-subdir / gyptest-action.py
1 #!/usr/bin/env python
2
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.
6
7 """
8 Test actions that output to PRODUCT_DIR.
9 """
10
11 import TestGyp
12
13 # TODO fix this for xcode: http://code.google.com/p/gyp/issues/detail?id=88
14 test = TestGyp.TestGyp(formats=['!xcode'])
15
16 test.run_gyp('none.gyp', chdir='src')
17
18 test.build('none.gyp', test.ALL, chdir='src')
19
20 file_content = 'Hello from make-file.py\n'
21 subdir_file_content = 'Hello from make-subdir-file.py\n'
22
23 test.built_file_must_match('file.out', file_content, chdir='src')
24 test.built_file_must_match('subdir_file.out', subdir_file_content, chdir='src')
25
26 test.pass_test()