-- -- tests/actions/vstudio/vc200x/test_platforms.lua -- Test the Visual Studio 2002-2008 project's Platforms block -- Copyright (c) 2009-2012 Jason Perkins and the Premake project -- T.vstudio_vc200x_platforms = { } local suite = T.vstudio_vc200x_platforms local vc200x = premake.vstudio.vc200x -- -- Setup -- local sln, prj function suite.setup() _ACTION = "vs2008" sln = test.createsolution() end local function prepare() prj = premake.solution.getproject_ng(sln, 1) vc200x.platforms(prj) end -- -- If no architectures are specified, Win32 should be the default. -- function suite.win32Listed_onNoPlatforms() prepare() test.capture [[ ]] end -- -- If multiple configurations use the same architecture, it should -- still only be listed once. -- function suite.architectureListedOnlyOnce_onMultipleConfigurations() platforms { "Static", "Dynamic" } prepare() test.capture [[ ]] end -- -- If multiple architectures are used, they should all be listed. -- function suite.allArchitecturesListed_onMultipleArchitectures() platforms { "x32", "x64" } prepare() test.capture [[ ]] end -- -- Verify the PS3 platform. -- function suite.platformIsCorrect_onPS3() platforms { "PS3" } prepare() test.capture [[ ]] end -- -- Verify the Xbox360 platform. -- function suite.platformIsCorrect_onXbox360() platforms { "Xbox360" } prepare() test.capture [[ ]] end