Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLiam Devine <dmail00@gmail.com>2010-12-01 16:10:44 +0300
committerLiam Devine <dmail00@gmail.com>2010-12-01 16:10:44 +0300
commit98aa6f7b0f25b0dbea7c4d82a3970266d3ab38e3 (patch)
treefc3b745504d0a8750e4442e9ce4ecb7baf6631f3 /tests
parentf0402a6052d8a41e43c990f30b32cf9a6b1510e6 (diff)
fixes ClCompile blocks with PCH's in Vs10 generator
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/vstudio/test_vs2010_vcxproj.lua17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/actions/vstudio/test_vs2010_vcxproj.lua b/tests/actions/vstudio/test_vs2010_vcxproj.lua
index 2c42b18..327dd18 100644
--- a/tests/actions/vstudio/test_vs2010_vcxproj.lua
+++ b/tests/actions/vstudio/test_vs2010_vcxproj.lua
@@ -374,7 +374,8 @@
end
local debug_config_pch_string = '<PrecompiledHeader Condition="\'%$%(Configuration%)|%$%(Platform%)\'==\'Debug|Win32\'">Create</PrecompiledHeader>'
-
+ local release_config_pch_string = debug_config_pch_string:gsub('Debug','Release')
+
function vs10_vcxproj.noPchFlagSet_bufferDoesNotContainPchCreate()
configuration("Debug")
flags{"NoPCH"}
@@ -407,3 +408,17 @@
test.string_does_not_contain(buffer,debug_config_pch_string)
end
+ function vs10_vcxproj.pchHeaderAndPchSourceSet_debugAndRelease_matchingClCompileBlocks()
+ configuration("Debug")
+ pchheader "foo/dummyHeader.h"
+ pchsource "foo/dummySource.cpp"
+ configuration("Release")
+ pchheader "foo/dummyHeader.h"
+ pchsource "foo/dummySource.cpp"
+ local buffer = get_buffer()
+
+ local exspected = '<ClCompile Include="foo\\dummySource.cpp">%s+'
+ ..debug_config_pch_string ..'%s+'
+ ..release_config_pch_string ..'%s+</ClCompile>'
+ test.string_contains(buffer,exspected)
+ end