diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/dependencies/gyptest-none-traversal.py')
-rwxr-xr-x | media/webrtc/trunk/tools/gyp/test/dependencies/gyptest-none-traversal.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/dependencies/gyptest-none-traversal.py b/media/webrtc/trunk/tools/gyp/test/dependencies/gyptest-none-traversal.py new file mode 100755 index 000000000..c09063dad --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/dependencies/gyptest-none-traversal.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +# Copyright (c) 2011 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +""" +Verify that static library dependencies don't traverse none targets, unless +explicitly specified. +""" + +import TestGyp + +import sys + +test = TestGyp.TestGyp() + +test.run_gyp('none_traversal.gyp') + +test.build('none_traversal.gyp', test.ALL) + +test.run_built_executable('needs_chain', stdout="2\n") +test.run_built_executable('doesnt_need_chain', stdout="3\n") + +test.pass_test() |