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/workspace/test_help_rule.lua

42 lines
688 B
Lua
Raw Normal View History

--
-- tests/actions/make/test_help_rule.lua
-- Validate generation of help rule and configurations list.
-- Copyright (c) 2012-2015 Jason Perkins and the Premake project
--
2017-04-25 05:44:13 +00:00
local p = premake
local suite = test.declare("make_help_rule")
--
-- Setup/teardown
--
2015-08-28 20:16:14 +00:00
local wks
function suite.setup()
2015-08-28 20:16:14 +00:00
wks = test.createWorkspace()
end
local function prepare()
2015-08-28 20:16:14 +00:00
wks = test.getWorkspace(wks)
2017-04-25 05:44:13 +00:00
p.make.helprule(wks)
end
--
-- Start with the default Debug and Release setup.
--
function suite.looksOkay_onDefaultSetup()
prepare()
test.capture [[
help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " debug"
@echo " release"
]]
end