-- -- tests/actions/vstudio/cs2005/test_platform_groups.lua -- Check creation of per-platform property groups in VS2005+ C# projects. -- Copyright (c) 2009-2012 Jason Perkins and the Premake project -- T.vstudio_cs2005_platform_groups = {} local suite = T.vstudio_cs2005_platform_groups local cs2005 = premake.vstudio.cs2005 -- -- Setup -- local sln, prj, cfg function suite.setup() _ACTION = "vs2008" end local function prepare(platform) sln = solution ("MySolution") configurations ("Debug") platforms (platform) prj = project ("MyProject") language "C#" cfg = premake5.project.getconfig(prj, "Debug", platform) cs2005.propertyGroup(cfg) end -- -- Check defaults. -- function suite.vs2008() _ACTION = "vs2008" prepare() test.capture [[ ]] end function suite.vs2010() _ACTION = "vs2010" prepare() test.capture [[ AnyCPU ]] end -- -- Check handling of specific architectures. -- function suite.vs2008_onAnyCpu() _ACTION = "vs2008" prepare("Any CPU") test.capture [[ ]] end function suite.vs2010_onAnyCpu() _ACTION = "vs2010" prepare("Any CPU") test.capture [[ AnyCPU ]] end function suite.onX32() prepare("x32") test.capture [[ x86 ]] end function suite.onX64() prepare("x64") test.capture [[ x64 ]] end