2009-03-25 23:04:32 +00:00
|
|
|
--
|
|
|
|
-- tests/test_vs2002_sln.lua
|
|
|
|
-- Automated test suite for Visual Studio 2002 solution generation.
|
|
|
|
-- Copyright (c) 2009 Jason Perkins and the Premake project
|
|
|
|
--
|
|
|
|
|
|
|
|
T.vs2002_sln = { }
|
2011-02-02 18:27:52 +00:00
|
|
|
local suite = T.vs2002_sln
|
|
|
|
local sln2002 = premake.vstudio.sln2002
|
2009-03-25 23:04:32 +00:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Configure a solution for testing
|
|
|
|
--
|
|
|
|
|
|
|
|
local sln
|
2011-02-02 18:27:52 +00:00
|
|
|
function suite.setup()
|
2009-05-08 20:18:47 +00:00
|
|
|
_ACTION = 'vs2002'
|
|
|
|
|
2009-03-25 23:04:32 +00:00
|
|
|
sln = solution "MySolution"
|
|
|
|
configurations { "Debug", "Release" }
|
2009-04-09 20:02:49 +00:00
|
|
|
platforms {}
|
2009-03-25 23:04:32 +00:00
|
|
|
|
|
|
|
prj = project "MyProject"
|
|
|
|
language "C++"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
uuid "AE61726D-187C-E440-BD07-2556188A6565"
|
|
|
|
|
2011-05-18 21:32:04 +00:00
|
|
|
premake.bake.buildconfigs()
|
2009-03-25 23:04:32 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Make sure I've got the basic layout correct
|
|
|
|
--
|
|
|
|
|
2011-02-02 18:27:52 +00:00
|
|
|
function suite.BasicLayout()
|
|
|
|
sln2002.generate(sln)
|
2009-03-25 23:04:32 +00:00
|
|
|
test.capture [[
|
|
|
|
Microsoft Visual Studio Solution File, Format Version 7.00
|
|
|
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MyProject", "MyProject.vcproj", "{AE61726D-187C-E440-BD07-2556188A6565}"
|
|
|
|
EndProject
|
|
|
|
Global
|
|
|
|
GlobalSection(SolutionConfiguration) = preSolution
|
|
|
|
ConfigName.0 = Debug
|
|
|
|
ConfigName.1 = Release
|
|
|
|
EndGlobalSection
|
|
|
|
GlobalSection(ProjectDependencies) = postSolution
|
|
|
|
EndGlobalSection
|
|
|
|
GlobalSection(ProjectConfiguration) = postSolution
|
|
|
|
{AE61726D-187C-E440-BD07-2556188A6565}.Debug.ActiveCfg = Debug|Win32
|
|
|
|
{AE61726D-187C-E440-BD07-2556188A6565}.Debug.Build.0 = Debug|Win32
|
|
|
|
{AE61726D-187C-E440-BD07-2556188A6565}.Release.ActiveCfg = Release|Win32
|
|
|
|
{AE61726D-187C-E440-BD07-2556188A6565}.Release.Build.0 = Release|Win32
|
|
|
|
EndGlobalSection
|
|
|
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
|
|
EndGlobalSection
|
|
|
|
GlobalSection(ExtensibilityAddIns) = postSolution
|
|
|
|
EndGlobalSection
|
|
|
|
EndGlobal
|
|
|
|
]]
|
|
|
|
end
|