summaryrefslogtreecommitdiff
path: root/deps/gyp/test/msvs/buildevents/gyptest-msbuild-supports-prepostbuild.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/msvs/buildevents/gyptest-msbuild-supports-prepostbuild.py')
-rwxr-xr-xdeps/gyp/test/msvs/buildevents/gyptest-msbuild-supports-prepostbuild.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/deps/gyp/test/msvs/buildevents/gyptest-msbuild-supports-prepostbuild.py b/deps/gyp/test/msvs/buildevents/gyptest-msbuild-supports-prepostbuild.py
new file mode 100755
index 0000000000..208f434560
--- /dev/null
+++ b/deps/gyp/test/msvs/buildevents/gyptest-msbuild-supports-prepostbuild.py
@@ -0,0 +1,24 @@
+#!/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 that msvs_prebuild and msvs_postbuild can be specified in both
+VS 2008 and 2010.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp(formats=['msvs'], workdir='workarea_all')
+
+test.run_gyp('buildevents.gyp', '-G', 'msvs_version=2008')
+test.must_contain('main.vcproj', 'Name="VCPreBuildEventTool"')
+test.must_contain('main.vcproj', 'Name="VCPostBuildEventTool"')
+
+test.run_gyp('buildevents.gyp', '-G', 'msvs_version=2010')
+test.must_contain('main.vcxproj', '<PreBuildEvent>')
+test.must_contain('main.vcxproj', '<PostBuildEvent>')
+
+test.pass_test()