55 lines
1.1 KiB
Lua
55 lines
1.1 KiB
Lua
|
--
|
||
|
-- tests/actions/vstudio/vc2010/test_manifest.lua
|
||
|
-- Validate generation of Manifest block in Visual Studio 201x C/C++ projects.
|
||
|
-- Copyright (c) 2090-2012 Jason Perkins and the Premake project
|
||
|
--
|
||
|
|
||
|
local suite = test.declare("vs2010_manifest")
|
||
|
local vc2010 = premake.vstudio.vc2010
|
||
|
local project = premake5.project
|
||
|
|
||
|
|
||
|
--
|
||
|
-- Setup
|
||
|
--
|
||
|
|
||
|
local sln, prj, cfg
|
||
|
|
||
|
function suite.setup()
|
||
|
_ACTION = "vs2010"
|
||
|
sln, prj = test.createsolution()
|
||
|
kind "ConsoleApp"
|
||
|
end
|
||
|
|
||
|
local function prepare(platform)
|
||
|
cfg = project.getconfig(prj, "Debug", platform)
|
||
|
vc2010.manifest(cfg)
|
||
|
end
|
||
|
|
||
|
|
||
|
--
|
||
|
-- Check the basic element structure with default settings.
|
||
|
--
|
||
|
|
||
|
function suite.defaultSettings()
|
||
|
files { "source/test.manifest" }
|
||
|
prepare()
|
||
|
test.capture [[
|
||
|
<Manifest>
|
||
|
<AdditionalManifestFiles>source/test.manifest %(AdditionalManifestFiles)</AdditionalManifestFiles>
|
||
|
</Manifest>
|
||
|
]]
|
||
|
end
|
||
|
|
||
|
--
|
||
|
-- Check that there is no manifest when using static lib
|
||
|
--
|
||
|
|
||
|
function suite.staticLib()
|
||
|
kind "StaticLib"
|
||
|
files { "test.manifest" }
|
||
|
prepare()
|
||
|
test.capture [[
|
||
|
]]
|
||
|
end
|