1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/trunk/tools/gyp/test/module/gyptest-default.py Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +# Copyright (c) 2012 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 simple build of a "Hello, world!" program with loadable modules. The 1.12 +default for all platforms should be to output the loadable modules to the same 1.13 +path as the executable. 1.14 +""" 1.15 + 1.16 +import TestGyp 1.17 + 1.18 +# Android doesn't support loadable modules 1.19 +test = TestGyp.TestGyp(formats=['!android']) 1.20 + 1.21 +test.run_gyp('module.gyp', chdir='src') 1.22 + 1.23 +test.build('module.gyp', test.ALL, chdir='src') 1.24 + 1.25 +expect = """\ 1.26 +Hello from program.c 1.27 +Hello from lib1.c 1.28 +Hello from lib2.c 1.29 +""" 1.30 +test.run_built_executable('program', chdir='src', stdout=expect) 1.31 + 1.32 +test.pass_test()