• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2
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.
6
7"""
8Verifies that actions can be + a source scanner can be used to implement,
9cross-compiles (for Native Client at this point).
10"""
11
12import TestGyp
13
14test = TestGyp.TestGyp()
15
16test.run_gyp('cross.gyp', chdir='src')
17
18test.relocate('src', 'relocate/src')
19
20test.build('cross.gyp', test.ALL, chdir='relocate/src')
21
22expect = """\
23From test1.cc
24From test2.c
25From test3.cc
26From test4.c
27"""
28test.run_built_executable('program', chdir='relocate/src', stdout=expect)
29
30
31test.pass_test()
32