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

34 lines
869 B
Lua

--
-- 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
--
T.vstudio_vc2010_header = { }
local suite = T.vstudio_vc2010_header
local vc2010 = premake.vstudio.vc2010
--
-- If a default build target is specified, it should be included in the
-- generated Project element.
--
function suite.project_onDefaultTarget()
vc2010.project("Build")
test.capture [[
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
]]
end
--
-- If no build target is specified, the entire attribute should be omitted.
--
function suite.project_onNoDefaultTarget()
vc2010.project()
test.capture [[
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
]]
end