diff options
author | starkos <none@none> | 2009-03-26 02:04:32 +0300 |
---|---|---|
committer | starkos <none@none> | 2009-03-26 02:04:32 +0300 |
commit | 0776e56996fa3f25d4f746bd05e3b6badc339644 (patch) | |
tree | ea6684aac212f4e1ec9fe879f7067e90a090f66a /tests/test_vs2002_sln.lua | |
parent | d61caeb2c8758558969876e1d507d3f73efbfc31 (diff) |
** Merged branches/platforms (r735:741) Added x32 and x64 platform support for VS2005 and 2008
Diffstat (limited to 'tests/test_vs2002_sln.lua')
-rw-r--r-- | tests/test_vs2002_sln.lua | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/test_vs2002_sln.lua b/tests/test_vs2002_sln.lua new file mode 100644 index 0000000..6018802 --- /dev/null +++ b/tests/test_vs2002_sln.lua @@ -0,0 +1,59 @@ +-- +-- 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 = { } + +-- +-- Configure a solution for testing +-- + + local sln + function T.vs2002_sln.setup() + sln = solution "MySolution" + configurations { "Debug", "Release" } + + prj = project "MyProject" + language "C++" + kind "ConsoleApp" + uuid "AE61726D-187C-E440-BD07-2556188A6565" + + premake.buildconfigs() + _ACTION = 'vs2002' + end + + + +-- +-- Make sure I've got the basic layout correct +-- + + function T.vs2002_sln.BasicLayout() + io.capture() + premake.vs2002_solution(sln) + 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 |