This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/tests/actions/vstudio/vc2010/test_header.lua

39 lines
1022 B
Lua
Raw Normal View History

2011-07-01 19:05:16 +00:00
--
-- tests/actions/vstudio/vc2010/test_header.lua
-- Validate generation of the project file header block.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
2011-07-01 19:05:16 +00:00
--
local suite = test.declare("vstudio_vc2010_header")
2011-07-01 19:05:16 +00:00
local vc2010 = premake.vstudio.vc2010
--
-- If a default build target is specified, it should be included in the
-- generated Project element.
2011-07-01 19:05:16 +00:00
--
function suite.project_on2010()
_ACTION = "vs2010"
vc2010.project()
test.capture [[
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
]]
2011-07-01 19:05:16 +00:00
end
function suite.project_on2011()
_ACTION = "vs2012"
vc2010.project()
test.capture [[
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
]]
end
function suite.project_on2013()
_ACTION = "vs2013"
vc2010.project()
2011-07-01 19:05:16 +00:00
test.capture [[
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2011-07-01 19:05:16 +00:00
]]
end