Merge pull request #1093 from Gaztin/codelite-debugenvs
Implemented 'debugenvs' for CodeLite
This commit is contained in:
commit
e03412afbf
@ -274,9 +274,10 @@
|
||||
end
|
||||
|
||||
function m.environment(cfg)
|
||||
local envs = table.concat(cfg.debugenvs, "\n")
|
||||
|
||||
_p(3, '<Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>">')
|
||||
local variables = ""
|
||||
_x(4, '<![CDATA[%s]]>', variables)
|
||||
_x(4, '<![CDATA[%s]]>', envs)
|
||||
_p(3, '</Environment>')
|
||||
end
|
||||
|
||||
|
@ -142,11 +142,13 @@
|
||||
end
|
||||
|
||||
function suite.OnProjectCfg_Environment()
|
||||
debugenvs { "ENV_ONE=1", "ENV_TWO=2" }
|
||||
prepare()
|
||||
codelite.project.environment(cfg)
|
||||
test.capture(
|
||||
' <Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>">\n' ..
|
||||
' <![CDATA[]]>\n' ..
|
||||
' <![CDATA[ENV_ONE=1\n' ..
|
||||
'ENV_TWO=2]]>\n' ..
|
||||
' </Environment>'
|
||||
)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user