2015-03-11 20:11:09 +00:00
|
|
|
--
|
|
|
|
-- tests/actions/vstudio/cs2005/test_user_file.lua
|
|
|
|
-- Verify handling of empty and non-empty .user files for VC#.
|
|
|
|
-- Copyright (c) 2015 Jason Perkins and the Premake project
|
|
|
|
--
|
|
|
|
|
|
|
|
local suite = test.declare("vstudio_cs2005_user_file")
|
|
|
|
local cs2005 = premake.vstudio.cs2005
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Setup
|
|
|
|
--
|
|
|
|
|
2015-08-28 20:16:14 +00:00
|
|
|
local wks
|
2015-03-11 20:11:09 +00:00
|
|
|
|
|
|
|
function suite.setup()
|
2015-10-14 12:04:22 +00:00
|
|
|
premake.action.set("vs2008")
|
2015-08-28 20:16:14 +00:00
|
|
|
wks = test.createWorkspace()
|
2015-03-11 20:11:09 +00:00
|
|
|
language "C#"
|
|
|
|
end
|
|
|
|
|
|
|
|
local function prepare()
|
2015-08-28 20:16:14 +00:00
|
|
|
local prj = test.getproject(wks, 1)
|
2015-03-11 20:11:09 +00:00
|
|
|
cs2005.generateUser(prj)
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- If no debugger settings have been specified, then the .user
|
|
|
|
-- file should not be written at all.
|
|
|
|
--
|
|
|
|
|
|
|
|
function suite.noOutput_onNoSettings()
|
|
|
|
prepare()
|
|
|
|
test.isemptycapture()
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- If a debugger setting has been specified, output.
|
|
|
|
--
|
|
|
|
|
|
|
|
function suite.doesOutput_onDebugSettings()
|
|
|
|
debugargs { "hello" }
|
|
|
|
prepare()
|
|
|
|
test.hasoutput()
|
|
|
|
end
|
|
|
|
|