Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 #!/usr/bin/env python
3 # Copyright (c) 2012 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.
7 """
8 A basic test of compiling assembler files.
9 """
11 import sys
12 import TestGyp
14 if sys.platform != 'win32':
15 # TODO(bradnelson): get this working for windows.
16 test = TestGyp.TestGyp(formats=['!msvs'])
18 test.run_gyp('assembly.gyp', chdir='src')
20 test.relocate('src', 'relocate/src')
22 test.build('assembly.gyp', test.ALL, chdir='relocate/src')
24 expect = """\
25 Hello from program.c
26 Got 42.
27 """
28 test.run_built_executable('program', chdir='relocate/src', stdout=expect)
31 test.pass_test()