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_manifest.lua
2015-08-28 16:16:14 -04:00

54 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) 2009-2013 Jason Perkins and the Premake project
--
local suite = test.declare("vs2010_manifest")
local vc2010 = premake.vstudio.vc2010
local project = premake.project
--
-- Setup
--
local wks, prj
function suite.setup()
_ACTION = "vs2010"
wks, prj = test.createWorkspace()
kind "ConsoleApp"
end
local function prepare(platform)
local cfg = test.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.isemptycapture()
end