-- -- tests/actions/vstudio/vc200x/test_configuration.lua -- Test the Visual Studio 2002-2008 project's Configuration block -- Copyright (c) 2009-2013 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_vc200x_configuration") local vstudio = p.vstudio local vc200x = p.vstudio.vc200x local project = p.project -- -- Setup -- local wks, prj function suite.setup() p.action.set("vs2008") wks, prj = test.createWorkspace() end local function prepare() local cfg = test.getconfig(prj, "Debug", (prj.platforms or wks.platforms or {})[1]) vc200x.configuration(cfg, vstudio.projectConfig(cfg)) end -- -- Check the results of generating with the default project settings -- (C++ console application). -- function suite.defaultSettings() prepare() test.capture [[ ]] end -- -- If a platform is specified, it should be included in the platform name. -- function suite.usesWin32_onX86() workspace("MyWorkspace") platforms { "x86" } prepare() test.capture [[ ]] end function suite.defaultSettings_onNone() kind "None" prepare() test.capture [[ ]] end