summaryrefslogtreecommitdiff
path: root/deps/gyp/test/dependencies/gyptest-none-traversal.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/dependencies/gyptest-none-traversal.py')
-rwxr-xr-xdeps/gyp/test/dependencies/gyptest-none-traversal.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/deps/gyp/test/dependencies/gyptest-none-traversal.py b/deps/gyp/test/dependencies/gyptest-none-traversal.py
new file mode 100755
index 0000000000..c09063dad3
--- /dev/null
+++ b/deps/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()