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/gmake/tests/cpp/test_tools.lua

36 lines
597 B
Lua
Raw Normal View History

--
-- tests/actions/make/cpp/test_tools.lua
-- Tests for tools support in makefiles.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
2017-04-25 05:44:13 +00:00
local p = premake
local suite = test.declare("make_tools")
2017-04-25 05:44:13 +00:00
local make = p.make
local cpp = p.make.cpp
local project = p.project
--
-- Setup
--
local cfg
function suite.setup()
2015-08-28 20:16:14 +00:00
local wks, prj = test.createWorkspace()
cfg = test.getconfig(prj, "Debug")
end
--
-- Make sure that the correct tools are used.
--
function suite.usesCorrectTools()
2017-04-25 05:44:13 +00:00
make.cppTools(cfg, p.tools.gcc)
test.capture [[
RESCOMP = windres
]]
end