Moved io.capture to test framework; removed from test suites

This commit is contained in:
Jason Perkins 2011-02-03 16:38:32 -05:00
parent df2b2e3a6d
commit 43218e0e96
22 changed files with 1 additions and 30 deletions

View File

@ -19,7 +19,6 @@
end
local function prepare()
io.capture()
premake.buildconfigs()
cfg = premake.getconfig(prj, "Debug")
end

View File

@ -27,7 +27,6 @@
end
local function prepare()
io.capture()
premake.buildconfigs()
prj = premake.solution.getproject(sln, 1)
end

View File

@ -32,7 +32,6 @@
end
local function prepare()
io.capture()
premake.buildconfigs()
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)

View File

@ -20,7 +20,6 @@
end
local function prepare()
io.capture()
premake.buildconfigs()
end

View File

@ -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)

View File

@ -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)

View File

@ -16,7 +16,6 @@
end
local function get_buffer()
io.capture()
premake.buildconfigs()
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
premake.vs2010_vcxproj(prj)

View File

@ -14,7 +14,6 @@
end
local function get_buffer()
io.capture()
premake.buildconfigs()
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
premake.vs2010_vcxproj(prj)

View File

@ -47,7 +47,6 @@
end
local function get_buffer()
io.capture()
premake.buildconfigs()
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
premake.vs2010_vcxproj(prj)

View File

@ -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)

View File

@ -36,15 +36,6 @@
end
---------------------------------------------------------------------------
-- Setup
---------------------------------------------------------------------------
function suite.setup()
io.capture()
end
---------------------------------------------------------------------------
-- Header/footer tests
---------------------------------------------------------------------------

View File

@ -29,7 +29,6 @@
end
local function prepare()
io.capture()
premake.buildconfigs()
xcode.preparesolution(sln)
tr = xcode.buildprjtree(premake.solution.getproject(sln, 1))

View File

@ -23,7 +23,6 @@
end
local function prepare()
io.capture()
premake.buildconfigs()
xcode.preparesolution(sln)
local prj = premake.solution.getproject(sln, 1)

View File

@ -18,7 +18,6 @@
local cfg
local function prepare()
io.capture()
premake.buildconfigs()
cfg = premake.solution.getproject(sln, 1)
end

View File

@ -25,7 +25,6 @@
end
local function prepare()
io.capture()
premake.buildconfigs()
end

View File

@ -25,7 +25,6 @@
end
local function prepare()
io.capture()
premake.buildconfigs()
end

View File

@ -35,7 +35,6 @@
--
function suite.BasicLayout()
io.capture()
sln2002.generate(sln)
test.capture [[
Microsoft Visual Studio Solution File, Format Version 7.00

View File

@ -35,7 +35,6 @@
--
function suite.BasicLayout()
io.capture()
sln2003.generate(sln)
test.capture [[
Microsoft Visual Studio Solution File, Format Version 8.00

View File

@ -27,7 +27,6 @@
end
local function prepare()
io.capture()
premake.buildconfigs()
sln.vstudio_configs = premake.vstudio.buildconfigs(sln)
end

View File

@ -35,7 +35,6 @@
--
function suite.BasicLayout()
io.capture()
sln2005.generate(sln)
test.capture ('\239\187\191' .. [[

View File

@ -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' .. [[

View File

@ -205,6 +205,7 @@
local function test_run(suite, fn)
io.capture()
return pcall(fn)
end