Merge pull request #1093 from Gaztin/codelite-debugenvs

Implemented 'debugenvs' for CodeLite
This commit is contained in:
Samuel Surtees 2018-05-24 19:59:22 +10:00 committed by GitHub
commit e03412afbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -274,9 +274,10 @@
end
function m.environment(cfg)
local envs = table.concat(cfg.debugenvs, "\n")
_p(3, '<Environment EnvVarSetName="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;">')
local variables = ""
_x(4, '<![CDATA[%s]]>', variables)
_x(4, '<![CDATA[%s]]>', envs)
_p(3, '</Environment>')
end

View File

@ -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="&lt;Use Defaults&gt;" DbgSetName="&lt;Use Defaults&gt;">\n' ..
' <![CDATA[]]>\n' ..
' <![CDATA[ENV_ONE=1\n' ..
'ENV_TWO=2]]>\n' ..
' </Environment>'
)
end