diff options
author | liamDevine <none@none> | 2011-08-22 13:51:28 +0400 |
---|---|---|
committer | liamDevine <none@none> | 2011-08-22 13:51:28 +0400 |
commit | f817b07c524b862fffb7574cc5dd1914cb513b9c (patch) | |
tree | 356bbf7aa4105d383e55161767f64e63bbc71628 /tests | |
parent | 0c759197a2fb5e80ec3870afc42f54c2d745e99a (diff) |
VS200X Environment Args. Does not use the flag EnvironmentArgsInherit
Diffstat (limited to 'tests')
-rw-r--r-- | tests/actions/vstudio/vc200x/debugdir.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/actions/vstudio/vc200x/debugdir.lua b/tests/actions/vstudio/vc200x/debugdir.lua index df5c0b9..644ee38 100644 --- a/tests/actions/vstudio/vc200x/debugdir.lua +++ b/tests/actions/vstudio/vc200x/debugdir.lua @@ -58,3 +58,31 @@ /> ]] end + + + T.vc200x_env_args = { } + local vs200x_env_args = T.vc200x_env_args + + function vs200x_env_args.environmentArgs_notSet_bufferDoesNotContainEnvironment() + vc200x.environmentargs( {flags={}} ) + test.string_does_not_contain(io.endcapture(),'Environment=') + end + function vs200x_env_args.environmentArgs_set_bufferContainsEnvironment() + vc200x.environmentargs( {flags={},environmentargs={'key=value'}} ) + test.string_contains(io.endcapture(),'Environment=') + end + + function vs200x_env_args.environmentArgs_valueUsesQuotes_quotesMarksReplaced() + vc200x.environmentargs( {flags={},environmentargs={'key="value"'}} ) + test.string_contains(io.endcapture(),'Environment="key="value""') + end + + function vs200x_env_args.environmentArgs_multipleArgs_seperatedUsingCorrectEscape() + vc200x.environmentargs( {flags={},environmentargs={'key=value','foo=bar'}} ) + test.string_contains(io.endcapture(),'Environment="key=value
foo=bar"') + end + + function vs200x_env_args.environmentArgs_withDontMergeFlag_EnvironmentArgsDontMergeEqualsFalse() + vc200x.environmentargs( {flags={EnvironmentArgsDontMerge=1},environmentargs={'key=value'}} ) + test.string_contains(io.endcapture(),'EnvironmentMerge="false"') + end |