summaryrefslogtreecommitdiff
path: root/deps/gyp/test/dependency-copy/gyptest-copy.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/dependency-copy/gyptest-copy.py')
-rwxr-xr-xdeps/gyp/test/dependency-copy/gyptest-copy.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/deps/gyp/test/dependency-copy/gyptest-copy.py b/deps/gyp/test/dependency-copy/gyptest-copy.py
new file mode 100755
index 0000000000..5ba7c73d41
--- /dev/null
+++ b/deps/gyp/test/dependency-copy/gyptest-copy.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2009 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.
+
+"""
+Verifies dependencies do the copy step.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp()
+
+test.run_gyp('copies.gyp', chdir='src')
+
+test.build('copies.gyp', 'proj2', chdir='src')
+
+test.run_built_executable('proj1',
+ chdir='src',
+ stdout="Hello from file1.c\n")
+test.run_built_executable('proj2',
+ chdir='src',
+ stdout="Hello from file2.c\n")
+
+test.pass_test()