#!/usr/bin/env python

# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""
Verifies that .hpp files are ignored when included in the source list on all
platforms.
"""

import sys
import TestGyp

# TODO(bradnelson): get this working for windows.
test = TestGyp.TestGyp(formats=['make', 'ninja', 'scons', 'xcode'])

test.run_gyp('assembly.gyp', chdir='src')

test.relocate('src', 'relocate/src')

test.build('assembly.gyp', test.ALL, chdir='relocate/src')

expect = """\
Hello from program.c
Got 42.
"""
test.run_built_executable('program', chdir='relocate/src', stdout=expect)


test.pass_test()

@@ -38,10 +38,10 @@
 ) 20
-09
+12
  Goo
@@ -181,93 +181,48 @@
 %22%22%22%0A
-Verifies that .hpp files are ignored when included in the source list on all%0Aplatform
+A basic test of compiling assembler file
 s.%0A%22
@@ -252,16 +252,46 @@
 estGyp%0A%0A
+if sys.platform != 'win32':%0A  
 # TODO(b
@@ -332,16 +332,18 @@
 indows.%0A
+  
 test = T
@@ -403,16 +403,18 @@
 ode'%5D)%0A%0A
+  
 test.run
@@ -444,24 +444,26 @@
 dir='src')%0A%0A
+  
 test.relocat
@@ -488,16 +488,18 @@
 /src')%0A%0A
+  
 test.bui
@@ -550,16 +550,18 @@
 /src')%0A%0A
+  
 expect =
@@ -566,16 +566,18 @@
  = %22%22%22%5C%0A
+  
 Hello fr
@@ -593,16 +593,18 @@
 m.c%0A
+  
 Got 42.%0A
 %22%22%22%0A
@@ -599,20 +599,24 @@
 Got 42.%0A
+  
 %22%22%22%0A
+  
 test.run
@@ -683,16 +683,18 @@
 pect)%0A%0A%0A
+  
 test.pas

Exclude test/assembly on Windows