diff options
author | Oliver Schneider <oliver@assarbad.net> | 2014-01-07 13:24:54 +0400 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2014-01-07 13:24:54 +0400 |
commit | d31b7d723554de42057133afd7853ec318133c6a (patch) | |
tree | 0ac35a4b58663ce0b845287dbc51832ffff8df07 | |
parent | 0a62c8146a252c89a813fcf8d3bf7b6851195a97 (diff) |
Adding test for the resincludes fix ... unfortunately fails for reasons beyond me at the momenthg/resincludes-fix-test
--HG--
branch : resincludes-fix-test
-rw-r--r-- | tests/actions/vstudio/test_vs2010_vcxproj.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/actions/vstudio/test_vs2010_vcxproj.lua b/tests/actions/vstudio/test_vs2010_vcxproj.lua index c5b3401..a27e1a7 100644 --- a/tests/actions/vstudio/test_vs2010_vcxproj.lua +++ b/tests/actions/vstudio/test_vs2010_vcxproj.lua @@ -2,6 +2,7 @@ local vs10_vcxproj = T.vs2010_vcxproj local include_directory = "bar/foo" local include_directory2 = "baz/foo" + local resinclude_directory = "foo/bar/baz" local debug_define = "I_AM_ALIVE_NUMBER_FIVE" local vc2010 = premake.vstudio.vc2010 @@ -43,6 +44,7 @@ configuration("Debug") defines {debug_define} links{"foo_d"} + resincludedirs {resinclude_dir} end @@ -188,6 +190,15 @@ test.string_contains(buffer,'<ItemGroup>.*</ItemGroup>') end + local function resource_compile_string(version) + return '<ItemDefinitionGroup Condition="\'%$%(Configuration%)|%$%(Platform%)\'==\''..version..'|Win32\'">.*<ResourceCompile>' + end + + function vs10_vcxproj.resincludeDirectories_debugEntryContains_include_directory() + local buffer = get_buffer() + test.string_contains(buffer,resource_compile_string('Debug').. '.*<AdditionalIncludeDirectories>.*'.. path.translate(resinclude_directory, '\\') ..';.*</AdditionalIncludeDirectories>') + end + function vs10_vcxproj.itemGroupSection_hasResourceCompileSection() --for some reason this does not work here and it needs to be in --the project setting at the top ? |