media/webrtc/trunk/tools/gyp/test/scons_tools/gyptest-tools.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/scons_tools/gyptest-tools.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +#!/usr/bin/env python
     1.5 +
     1.6 +# Copyright (c) 2009 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 +Verifies that a scons build picks up tools modules specified
    1.12 +via 'scons_tools' in the 'scons_settings' dictionary.
    1.13 +"""
    1.14 +
    1.15 +import TestGyp
    1.16 +
    1.17 +test = TestGyp.TestGyp()
    1.18 +
    1.19 +test.run_gyp('tools.gyp')
    1.20 +
    1.21 +test.build('tools.gyp', test.ALL)
    1.22 +
    1.23 +if test.format == 'scons':
    1.24 +  expect = "Hello, world!\n"
    1.25 +else:
    1.26 +  expect = ""
    1.27 +test.run_built_executable('tools', stdout=expect)
    1.28 +
    1.29 +test.pass_test()

mercurial