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/modules/gmake2/tests/test_gmake2_tools.lua
2017-06-13 09:51:58 -07:00

37 lines
594 B
Lua

--
-- test_gmake2_tools.lua
-- Tests for tools support in makefiles.
-- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project
--
local suite = test.declare("gmake2_tools")
local p = premake
local gmake2 = p.modules.gmake2
local project = premake.project
--
-- Setup
--
local cfg
function suite.setup()
local wks, prj = test.createWorkspace()
cfg = test.getconfig(prj, "Debug")
end
--
-- Make sure that the correct tools are used.
--
function suite.usesCorrectTools()
gmake2.cpp.tools(cfg, p.tools.gcc)
test.capture [[
RESCOMP = windres
]]
end