blob: 09cfef1893d56f17dbaa35bbe59ddc0dd1db468f [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/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"""
8Test actions that output to PRODUCT_DIR.
9"""
10
11import TestGyp
12
13# TODO fix this for xcode: http://code.google.com/p/gyp/issues/detail?id=88
14test = TestGyp.TestGyp(formats=['!xcode'])
15
16test.run_gyp('none.gyp', chdir='src')
17
18test.build('none.gyp', test.ALL, chdir='src')
19
20file_content = 'Hello from make-file.py\n'
21subdir_file_content = 'Hello from make-subdir-file.py\n'
22
23test.built_file_must_match('file.out', file_content, chdir='src')
24test.built_file_must_match('subdir_file.out', subdir_file_content, chdir='src')
25
26test.pass_test()