Moved io.capture to test framework; removed from test suites
This commit is contained in:
parent
df2b2e3a6d
commit
43218e0e96
@ -19,7 +19,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
cfg = premake.getconfig(prj, "Debug")
|
||||
end
|
||||
|
@ -27,7 +27,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
prj = premake.solution.getproject(sln, 1)
|
||||
end
|
||||
|
@ -32,7 +32,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
|
||||
|
||||
|
@ -20,7 +20,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
end
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
end
|
||||
|
||||
local function get_buffer()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
|
||||
premake.vs2010_vcxproj_filters(prj)
|
||||
|
@ -18,7 +18,6 @@ function vs10_flags.setup()
|
||||
end
|
||||
|
||||
local function get_buffer()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
|
||||
premake.vs2010_vcxproj(prj)
|
||||
|
@ -16,7 +16,6 @@
|
||||
end
|
||||
|
||||
local function get_buffer()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
|
||||
premake.vs2010_vcxproj(prj)
|
||||
|
@ -14,7 +14,6 @@
|
||||
end
|
||||
|
||||
local function get_buffer()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
|
||||
premake.vs2010_vcxproj(prj)
|
||||
|
@ -47,7 +47,6 @@
|
||||
end
|
||||
|
||||
local function get_buffer()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
|
||||
premake.vs2010_vcxproj(prj)
|
||||
|
@ -20,7 +20,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
prj = premake.solution.getproject(sln, 1)
|
||||
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
|
||||
|
@ -36,15 +36,6 @@
|
||||
end
|
||||
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
-- Setup
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
function suite.setup()
|
||||
io.capture()
|
||||
end
|
||||
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
-- Header/footer tests
|
||||
---------------------------------------------------------------------------
|
||||
|
@ -29,7 +29,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
xcode.preparesolution(sln)
|
||||
tr = xcode.buildprjtree(premake.solution.getproject(sln, 1))
|
||||
|
@ -23,7 +23,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
xcode.preparesolution(sln)
|
||||
local prj = premake.solution.getproject(sln, 1)
|
||||
|
@ -18,7 +18,6 @@
|
||||
|
||||
local cfg
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
cfg = premake.solution.getproject(sln, 1)
|
||||
end
|
||||
|
@ -25,7 +25,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
end
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
end
|
||||
|
||||
|
@ -35,7 +35,6 @@
|
||||
--
|
||||
|
||||
function suite.BasicLayout()
|
||||
io.capture()
|
||||
sln2002.generate(sln)
|
||||
test.capture [[
|
||||
Microsoft Visual Studio Solution File, Format Version 7.00
|
||||
|
@ -35,7 +35,6 @@
|
||||
--
|
||||
|
||||
function suite.BasicLayout()
|
||||
io.capture()
|
||||
sln2003.generate(sln)
|
||||
test.capture [[
|
||||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
|
@ -27,7 +27,6 @@
|
||||
end
|
||||
|
||||
local function prepare()
|
||||
io.capture()
|
||||
premake.buildconfigs()
|
||||
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
|
||||
end
|
||||
|
@ -35,7 +35,6 @@
|
||||
--
|
||||
|
||||
function suite.BasicLayout()
|
||||
io.capture()
|
||||
sln2005.generate(sln)
|
||||
test.capture ('\239\187\191' .. [[
|
||||
|
||||
|
@ -38,7 +38,6 @@ local constant_project_name = "MyProject"
|
||||
end
|
||||
|
||||
local function get_buffer()
|
||||
io.capture()
|
||||
premake.vs_generic_solution(sln)
|
||||
buffer = io.endcapture()
|
||||
return buffer
|
||||
@ -85,7 +84,6 @@ local constant_project_name = "MyProject"
|
||||
end
|
||||
|
||||
function T.vs2010_sln.BasicLayout()
|
||||
io.capture()
|
||||
premake.vs_generic_solution(sln)
|
||||
test.capture ('\239\187\191' .. [[
|
||||
|
||||
|
@ -205,6 +205,7 @@
|
||||
|
||||
|
||||
local function test_run(suite, fn)
|
||||
io.capture()
|
||||
return pcall(fn)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user