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""" 8Verifies that .hpp files are ignored when included in the source list on all 9platforms. 10""" 11 12import TestGyp 13 14test = TestGyp.TestGyp() 15 16test.run_gyp('headers.gyp', chdir='src') 17 18test.relocate('src', 'relocate/src') 19 20test.build('headers.gyp', test.ALL, chdir='relocate/src') 21 22expect = """\ 23Hello from program.c 24Hello from lib1.c 25""" 26test.run_built_executable('program', chdir='relocate/src', stdout=expect) 27 28 29test.pass_test() 30