From d31b7d723554de42057133afd7853ec318133c6a Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 7 Jan 2014 09:24:54 +0000 Subject: Adding test for the resincludes fix ... unfortunately fails for reasons beyond me at the moment --HG-- branch : resincludes-fix-test --- tests/actions/vstudio/test_vs2010_vcxproj.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) 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,'.*') end + local function resource_compile_string(version) + return '.*' + end + + function vs10_vcxproj.resincludeDirectories_debugEntryContains_include_directory() + local buffer = get_buffer() + test.string_contains(buffer,resource_compile_string('Debug').. '.*.*'.. path.translate(resinclude_directory, '\\') ..';.*') + 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 ? -- cgit v1.2.3