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