media/webrtc/trunk/tools/gyp/test/link-objects/gyptest-all.py

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/tools/gyp/test/link-objects/gyptest-all.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +#!/usr/bin/env python
     1.5 +
     1.6 +# Copyright (c) 2011 Google Inc. All rights reserved.
     1.7 +# Use of this source code is governed by a BSD-style license that can be
     1.8 +# found in the LICENSE file.
     1.9 +
    1.10 +"""
    1.11 +Put an object file on the sources list.
    1.12 +Expect the result to link ok.
    1.13 +"""
    1.14 +
    1.15 +import TestGyp
    1.16 +
    1.17 +import sys
    1.18 +
    1.19 +if sys.platform != 'darwin':
    1.20 +  # Currently only works under the linux make build.
    1.21 +  test = TestGyp.TestGyp(formats=['make'])
    1.22 +
    1.23 +  test.run_gyp('link-objects.gyp')
    1.24 +
    1.25 +  test.build('link-objects.gyp', test.ALL)
    1.26 +
    1.27 +  test.run_built_executable('link-objects', stdout="PASS\n")
    1.28 +
    1.29 +  test.up_to_date('link-objects.gyp', test.ALL)
    1.30 +
    1.31 +  test.pass_test()

mercurial