media/webrtc/trunk/tools/gyp/test/scons_tools/gyptest-tools.py

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:db12d346ea58
1 #!/usr/bin/env python
2
3 # Copyright (c) 2009 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 """
8 Verifies that a scons build picks up tools modules specified
9 via 'scons_tools' in the 'scons_settings' dictionary.
10 """
11
12 import TestGyp
13
14 test = TestGyp.TestGyp()
15
16 test.run_gyp('tools.gyp')
17
18 test.build('tools.gyp', test.ALL)
19
20 if test.format == 'scons':
21 expect = "Hello, world!\n"
22 else:
23 expect = ""
24 test.run_built_executable('tools', stdout=expect)
25
26 test.pass_test()

mercurial