-- -- tests/actions/vstudio/vc2010/test_config_props.lua -- Validate generation of the configuration property group. -- Copyright (c) 2011-2012 Jason Perkins and the Premake project -- T.vstudio_vs2010_config_props = { } local suite = T.vstudio_vs2010_config_props local vc2010 = premake.vstudio.vc2010 local project = premake5.project -- -- Setup -- local sln, prj, cfg function suite.setup() sln, prj = test.createsolution() end local function prepare() cfg = project.getconfig(prj, "Debug") vc2010.configurationProperties(cfg) end -- -- Check the structure with the default project values. -- function suite.structureIsCorrect_onDefaultValues() prepare() test.capture [[ Application false MultiByte ]] end -- -- Check the configuration type for differenet project kinds. -- function suite.configurationType_onConsoleApp() kind "ConsoleApp" prepare() test.capture [[ Application ]] end function suite.configurationType_onWindowedApp() kind "WindowedApp" prepare() test.capture [[ Application ]] end function suite.configurationType_onSharedLib() kind "SharedLib" prepare() test.capture [[ DynamicLibrary ]] end function suite.configurationType_onStaticLib() kind "StaticLib" prepare() test.capture [[ StaticLibrary ]] end -- -- Debug configurations (for some definition of "debug") should use the debug libraries. -- function suite.debugLibraries_onDebugConfig() flags "Symbols" prepare() test.capture [[ Application true ]] end -- -- Check the support for Unicode. -- function suite.characterSet_onUnicode() flags "Unicode" prepare() test.capture [[ Application false Unicode ]] end -- -- Check the support for Managed C++. -- function suite.clrSupport_onManaged() flags "Managed" prepare() test.capture [[ Application false true ]] end -- -- Check the support for building with MFC. -- function suite.useOfMfc_onDynamicRuntime() flags "MFC" prepare() test.capture [[ Application false Dynamic ]] end function suite.useOfMfc_onStaticRuntime() flags { "MFC", "StaticRuntime" } prepare() test.capture [[ Application false Static ]] end