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
2017-06-19 12:15:13 -07:00

36 lines
597 B
Lua

--
-- tests/actions/make/cpp/test_tools.lua
-- Tests for tools support in makefiles.
-- Copyright (c) 2012-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("make_tools")
local make = p.make
local cpp = p.make.cpp
local project = p.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()
make.cppTools(cfg, p.tools.gcc)
test.capture [[
RESCOMP = windres
]]
end