Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorliamDevine <none@none>2011-08-22 13:51:28 +0400
committerliamDevine <none@none>2011-08-22 13:51:28 +0400
commitf817b07c524b862fffb7574cc5dd1914cb513b9c (patch)
tree356bbf7aa4105d383e55161767f64e63bbc71628 /tests
parent0c759197a2fb5e80ec3870afc42f54c2d745e99a (diff)
VS200X Environment Args. Does not use the flag EnvironmentArgsInherit
Diffstat (limited to 'tests')
-rw-r--r--tests/actions/vstudio/vc200x/debugdir.lua28
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=&quot;value&quot;"')
+ end
+
+ function vs200x_env_args.environmentArgs_multipleArgs_seperatedUsingCorrectEscape()
+ vc200x.environmentargs( {flags={},environmentargs={'key=value','foo=bar'}} )
+ test.string_contains(io.endcapture(),'Environment="key=value&#x0A;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