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

38 lines
680 B
Lua

--
-- tests/test_premake.lua
-- Automated test suite for the Premake support functions.
-- Copyright (c) 2008-2015 Jason Perkins and the Premake project
--
local suite = test.declare("premake")
local p = premake
--
-- Setup
--
local wks, prj
function suite.setup()
wks = test.createWorkspace()
location "MyLocation"
prj = p.workspace.getproject(wks, 1)
end
--
-- generate() tests
--
function suite.generate_OpensCorrectFile()
p.generate(prj, ".prj", function () end)
test.openedfile(path.join(os.getcwd(), "MyLocation/MyProject.prj"))
end
function T.premake.generate_ClosesFile()
p.generate(prj, ".prj", function () end)
test.closedfile(true)
end