• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env python
2
3# Copyright (c) 2011 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"""
8Put an object file on the sources list.
9Expect the result to link ok.
10"""
11
12import TestGyp
13
14import sys
15
16if sys.platform != 'darwin':
17  # Currently only works under the linux make build.
18  test = TestGyp.TestGyp(formats=['make'])
19
20  test.run_gyp('link-objects.gyp')
21
22  test.build('link-objects.gyp', test.ALL)
23
24  test.run_built_executable('link-objects', stdout="PASS\n")
25
26  test.up_to_date('link-objects.gyp', test.ALL)
27
28  test.pass_test()
29