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

Unified Diff: test/msvs/filters/gyptest-filters-2010.py

Issue 1188553003: MSVS: Normalize paths against gyp directory. (Closed) Base URL: http://chromium.googlesource.com/external/gyp@master
Patch Set: Fix last style change Created 5 years, 6 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
« no previous file with comments | « pylib/gyp/generator/msvs.py ('k') | test/msvs/filters/subdir/subdir.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/msvs/filters/gyptest-filters-2010.py
diff --git a/test/msvs/filters/gyptest-filters-2010.py b/test/msvs/filters/gyptest-filters-2010.py
index d8131d5d7bd38e92ef57fb2262c51859a226be05..d01cbeb5cffa7b8cc2cd5819891f90e55f07dfe3 100644
--- a/test/msvs/filters/gyptest-filters-2010.py
+++ b/test/msvs/filters/gyptest-filters-2010.py
@@ -10,6 +10,7 @@ and later.
"""
import TestGyp
+import os
test = TestGyp.TestGyp(formats=['msvs'])
@@ -53,5 +54,18 @@ test.must_contain('nested_folders.vcxproj.filters', '''\
</ItemGroup>
'''.replace('\n', '\r\n'))
+subdir_gyp = os.path.join('subdir', 'subdir.gyp')
+test.run_gyp(subdir_gyp, '-G', 'standalone', '-G', 'msvs_version=2010')
+
+test.must_contain(os.path.join('subdir', 'normalize.vcxproj.filters'), '''\
+ <ItemGroup>
+ <ClCompile Include="folder1\\a.c">
+ <Filter>folder1</Filter>
+ </ClCompile>
+ <ClCompile Include="folder2\\b.c">
+ <Filter>folder2</Filter>
+ </ClCompile>
+ </ItemGroup>
+'''.replace('\n', '\r\n'))
test.pass_test()
« no previous file with comments | « pylib/gyp/generator/msvs.py ('k') | test/msvs/filters/subdir/subdir.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698