summaryrefslogtreecommitdiff
path: root/deps/gyp/test/relative/gyptest-default.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/relative/gyptest-default.py')
-rwxr-xr-xdeps/gyp/test/relative/gyptest-default.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/deps/gyp/test/relative/gyptest-default.py b/deps/gyp/test/relative/gyptest-default.py
new file mode 100755
index 0000000000..2d657aa675
--- /dev/null
+++ b/deps/gyp/test/relative/gyptest-default.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.
+
+"""
+Verifies simplest-possible build of a "Hello, world!" program
+using the default build target.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp(workdir='workarea_default', formats=['msvs'])
+
+# Run from down in foo.
+test.run_gyp('a.gyp', chdir='foo/a')
+sln = test.workpath('foo/a/a.sln')
+sln_data = open(sln, 'rb').read()
+vcproj = sln_data.count('b.vcproj')
+vcxproj = sln_data.count('b.vcxproj')
+if (vcproj, vcxproj) not in [(1, 0), (0, 1)]:
+ test.fail_test()
+
+test.pass_test()