Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: test/msvs/prebuild/gyptest-prebuild.py

Issue 2866042: Effectively duplicates targets that contain rules/actions, therefore enabling... (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: '' Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/msvs/prebuild/gyptest-prebuild.py
===================================================================
--- test/msvs/prebuild/gyptest-prebuild.py (revision 0)
+++ test/msvs/prebuild/gyptest-prebuild.py (revision 0)
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2010 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 prebuild targets are generated for targets with rules or actions.
+"""
+
+import TestGyp
+
+test = TestGyp.TestGyp(formats=['msvs'])
+
+test.run_gyp('prebuild.gyp', '-G', 'msvs_version=2005')
+test.must_contain('prebuild.sln', '(base)')
+test.must_contain('prebuild.sln', '"a"')
+test.must_contain('prebuild.sln', '"a_prebuild"')
+test.must_contain('prebuild.sln', '"b"')
+test.must_not_contain('prebuild.sln', '"b_prebuild"')
+test.must_contain('prebuild.sln', '"c"')
+test.must_not_contain('prebuild.sln', '"c_prebuild"')
+test.must_contain('prebuild.sln', '"prebuild"')
+test.must_not_contain('prebuild.sln', '"prebuild_prebuild"')
+
+test.pass_test()
Property changes on: test/msvs/prebuild/gyptest-prebuild.py
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698